Method: Redis#queue

Defined in:
lib/redis.rb

#queue(*command) ⇒ Object

Queues a command for pipelining.

Commands in the queue are executed with the Redis#commit method.

See redis.io/topics/pipelining for more details.



115
116
117
118
119
# File 'lib/redis.rb', line 115

def queue(*command)
  synchronize do
    @queue[Thread.current.object_id] << command
  end
end