class Redis

def lpop(key, count = nil)

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

Parameters:
  • count (Integer) -- number of elements to remove
  • key (String) --
def lpop(key, count = nil)
  synchronize do |client|
    command = [:lpop, key]
    command << count if count
    client.call(command)
  end
end