Method: Redis::Distributed#rpoplpush
- Defined in:
- lib/redis/distributed.rb
#rpoplpush(source, destination) ⇒ Object
Remove the last element in a list, append it to another list and return it.
460 461 462 463 464 |
# File 'lib/redis/distributed.rb', line 460 def rpoplpush(source, destination) ensure_same_node(:rpoplpush, [source, destination]) do |node| node.rpoplpush(source, destination) end end |