module Redis::Commands::Lists

def lpop(key, count = nil)

Returns:
  • (nil, String, Array) - the values of the first elements

Parameters:
  • count (Integer) -- number of elements to remove
  • key (String) --
def lpop(key, count = nil)
  command = [:lpop, key]
  command << Integer(count) if count
  send_command(command)
end