Method: Redis::List#pop

Defined in:
lib/redis/list.rb

#pop(n = nil) ⇒ Object

Remove a member from the end of the list. Redis: RPOP



32
33
34
35
36
37
38
# File 'lib/redis/list.rb', line 32

def pop(n=nil)
  if n
    unmarshal redis.rpop(key, n)
  else
    unmarshal redis.rpop(key)
  end
end