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
973 974 975 976 977 |
# File 'lib/redis.rb', line 973 def lpush(key, value) synchronize do |client| client.call([:lpush, key, value]) end end |