Method: Redis#lpop
- Defined in:
- lib/redis.rb
#lpop(key) ⇒ String
Remove and get the first element in a list.
1011 1012 1013 1014 1015 |
# File 'lib/redis.rb', line 1011 def lpop(key) synchronize do |client| client.call([:lpop, key]) end end |