Method: Redis#brpoplpush
- Defined in:
- lib/redis.rb
#brpoplpush(source, destination, timeout) ⇒ Object
Pop a value from a list, push it to another list and return it; or block until one is available.
391 392 393 394 395 |
# File 'lib/redis.rb', line 391 def brpoplpush(source, destination, timeout) synchronize do @client.call_without_timeout(:brpoplpush, source, destination, timeout) end end |