您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
Redis Rpushx 命令
发布时间:2021-11-02 15:26:16编辑:雪饮阅读()
Redis Rpushx 命令用于将一个值插入到已存在的列表尾部(最右边)。如果列表不存在,操作无效。
127.0.0.1:6379> rpushx key4 ele1
(integer) 2
127.0.0.1:6379> rpushx key5 ele1
(integer) 0
返回值
执行 Rpushx 操作后,列表的长度。
只支持单元素插入
127.0.0.1:6379> rpushx key4 ele1 ele2
(error) ERR wrong number of arguments for 'rpushx' command
关键字词:Redis,Rpushx
上一篇:Redis Rpush 命令
下一篇:Redis 集合(Set)