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.



470
471
472
473
474
# File 'lib/redis/distributed.rb', line 470

def rpoplpush(source, destination)
  ensure_same_node(:rpoplpush, [source, destination]) do |node|
    node.rpoplpush(source, destination)
  end
end