class Redis
def rpop(key, count = nil)
-
(String, Array
- the values of the last elements)
Parameters:
-
count
(Integer
) -- number of elements to remove -
key
(String
) --
def rpop(key, count = nil) synchronize do |client| command = [:rpop, key] command << count if count client.call(command) end end