Method: Redis#lpop

Defined in:
lib/redis.rb

#lpop(key) ⇒ Object

Remove and get the first element in a list.



412
413
414
415
416
# File 'lib/redis.rb', line 412

def lpop(key)
  synchronize do
    @client.call [:lpop, key]
  end
end