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.



434
435
436
# File 'lib/redis/distributed.rb', line 434

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