module Redis::Commands::Lists
def rpop(key, count = nil)
-
(nil, String, Array
- the values of the last elements)
Parameters:
-
count
(Integer
) -- number of elements to remove -
key
(String
) --
def rpop(key, count = nil) command = [:rpop, key] command << Integer(count) if count send_command(command) end