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.
519 520 521 522 523 |
# File 'lib/redis/distributed.rb', line 519 def brpoplpush(source, destination, **) ensure_same_node(:brpoplpush, [source, destination]) do |node| node.brpoplpush(source, destination, **) end end |