Method: Redis::Distributed#lpushx

Defined in:
lib/redis/distributed.rb

#lpushx(key, value) ⇒ Object

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



444
445
446
# File 'lib/redis/distributed.rb', line 444

def lpushx(key, value)
  node_for(key).lpushx(key, value)
end