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