summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/rpushx.md
blob: daab019a7e6955d554c539e83c16d3bde7d2d291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Inserts specified values at the tail of the list stored at `key`, only if `key`
already exists and holds a list.
In contrary to `RPUSH`, no operation will be performed when `key` does not yet
exist.

@return

@integer-reply: the length of the list after the push operation.

@examples

```cli
RPUSH mylist "Hello"
RPUSHX mylist "World"
RPUSHX myotherlist "World"
LRANGE mylist 0 -1
LRANGE myotherlist 0 -1
```