Method: Redis#lpush

Defined in:
lib/redis.rb

#lpush(key, value) ⇒ Object

Prepend a value to a list.



362
363
364
365
366
# File 'lib/redis.rb', line 362

def lpush(key, value)
  synchronize do
    @client.call [:lpush, key, value]
  end
end