Method: Redis::Commands::Lists#rpushx

Defined in:
lib/redis/commands/lists.rb

#rpushx(key, value) ⇒ Integer

Append a value to a list, only if the list exists.

Parameters:

Returns:

  • the length of the list after the push operation



94
95
96
# File 'lib/redis/commands/lists.rb', line 94

def rpushx(key, value)
  send_command([:rpushx, key, value])
end