Method: Redis#rpush

Defined in:
lib/redis.rb

#rpush(key, value) ⇒ Fixnum

Append one or more values to a list, creating the list if it doesn't exist

Parameters:

  • key (String)
  • value (String)

Returns:

  • (Fixnum)

    the length of the list after the push operation



879
880
881
882
883
# File 'lib/redis.rb', line 879

def rpush(key, value)
  synchronize do |client|
    client.call [:rpush, key, value]
  end
end