summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/lpop.md
blob: 60491768eda526b815a978fd06b6232c1b0bff7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Removes and returns the first element of the list stored at `key`.

@return

@bulk-string-reply: the value of the first element, or `nil` when `key` does not
exist.

@examples

```cli
RPUSH mylist "one"
RPUSH mylist "two"
RPUSH mylist "three"
LPOP mylist
LRANGE mylist 0 -1
```