Method: Redis::Commands::Transactions#multi
- Defined in:
- lib/redis/commands/transactions.rb
#multi {|multi| ... } ⇒ Array<...>
Mark the start of a transaction block.
23 24 25 26 27 28 29 |
# File 'lib/redis/commands/transactions.rb', line 23 def multi synchronize do |client| client.multi do |raw_transaction| yield MultiConnection.new(raw_transaction) end end end |