module Redis::Commands::Lists

def lmove(source, destination, where_source, where_destination)

Other tags:
    Note: - This command comes in place of the now deprecated RPOPLPUSH.

Returns:
  • (nil, String) - the element, or nil when the source key does not exist

Parameters:
  • where_destination (String, Symbol) -- where to push the element to the source list
  • where_source (String, Symbol) -- from where to remove the element from the source list
  • destination (String) -- destination key
  • source (String) -- source key
def lmove(source, destination, where_source, where_destination)
  where_source, where_destination = _normalize_move_wheres(where_source, where_destination)
  send_command([:lmove, source, destination, where_source, where_destination])
end