class Redis::Distributed

def lmove(source, destination, where_source, where_destination)

Remove the first/last element in a list, append/prepend it to another list and return it.
def lmove(source, destination, where_source, where_destination)
  ensure_same_node(:lmove, [source, destination]) do |node|
    node.lmove(source, destination, where_source, where_destination)
  end
end