class Redis

def lpush(key, value)

Returns:
  • (Fixnum) - the length of the list after the push operation

Parameters:
  • value (String, Array) -- string value, or array of string values to push
  • key (String) --
def lpush(key, value)
  synchronize do |client|
    client.call([:lpush, key, value])
  end
end