LpopCommand: Contents
  LPOP _key_
  RPOP _key_
    Return value
    See also

LpopCommand

LPOP _key_

RPOP _key_

Time complexity: O(1)
Atomically return and remove the first (LPOP) or last (RPOP) elementof the list. For example if the list contains the elements "a","b","c" LPOPwill return "a" and the list will become "b","c".
If the key does not exist or the list is already empty the specialvalue 'nil' is returned.

Return value

Bulk reply

See also