Method: FakeRedis::TransactionCommands#multi
- Defined in:
- lib/fakeredis/transaction_commands.rb
#multi {|_self| ... } ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/fakeredis/transaction_commands.rb', line 63 def multi if in_multi raise Redis::CommandError, "ERR MULTI calls can not be nested" end self.in_multi = true yield(self) if block_given? "OK" end |