Method: Redis::Distributed#brpoplpush
- Defined in:
- lib/redis/distributed.rb
#brpoplpush(source, destination, **options) ⇒ Object
Pop a value from a list, push it to another list and return it; or block until one is available.
509 510 511 512 513 |
# File 'lib/redis/distributed.rb', line 509 def brpoplpush(source, destination, **) ensure_same_node(:brpoplpush, [source, destination]) do |node| node.brpoplpush(source, destination, **) end end |