Method: Redis#lpush
- Defined in:
- lib/redis.rb
#lpush(key, value) ⇒ Fixnum
Prepend one or more values to a list, creating the list if it doesn't exist
968 969 970 971 972 |
# File 'lib/redis.rb', line 968 def lpush(key, value) synchronize do |client| client.call([:lpush, key, value]) end end |