Method: Redis::Commands::Lists#rpop
- Defined in:
- lib/redis/commands/lists.rb
#rpop(key, count = nil) ⇒ nil, ...
Remove and get the last elements in a list.
114 115 116 117 118 |
# File 'lib/redis/commands/lists.rb', line 114 def rpop(key, count = nil) command = [:rpop, key] command << Integer(count) if count send_command(command) end |