Method: Rediska::TransactionCommands#exec
- Defined in:
- lib/rediska/transaction_commands.rb
#exec ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rediska/transaction_commands.rb', line 44 def exec unless in_multi raise Redis::CommandError, 'ERR EXEC without MULTI' end responses = queued_commands.map do |cmd| begin send(*cmd) rescue => e e end end self.queued_commands = [] self.in_multi = false responses end |