Lists Rpushx
# Redis Rpushx Command
[!(#) Redis Lists (List)](#)")
The Redis Rpushx command is used to insert a value at the end (right side) of an existing list. If the list does not exist, the operation is ineffective.
### Syntax
The basic syntax for the Redis Rpushx command is as follows:
redis 127.0.0.1:6379> RPUSHX KEY_NAME VALUE1..VALUEN
### Available Version
>= 2.2.0
### Return Value
The length of the list after executing the Rpushx operation.
### Example
redis 127.0.0.1:6379> RPUSH mylist "hello"(integer) 1 redis 127.0.0.1:6379> RPUSH mylist "foo"(integer) 2 redis 127.0.0.1:6379> RPUSHX mylist2 "bar"(integer) 0 redis 127.0.0.1:6379> LRANGE mylist 0 -11) "hello"2) "foo"
[!(#) Redis Lists (List)](#)")
YouTip