Syntax
RPUSHX key value
Inserts value at the tail of
the list, only if key exists.
Returns
The length of the list after
push operation.
127.0.0.1:6379> keys * 1) "ids" 127.0.0.1:6379> rpush list1 10 (integer) 1 127.0.0.1:6379> keys * 1) "list1" 2) "ids" 127.0.0.1:6379> rpushx list1 10 (integer) 2 127.0.0.1:6379> lrange list1 0 1 1) "10" 2) "10"
No comments:
Post a Comment