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

@return

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

@examples

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