Redis Rpushx 命令
Redis 教程
· 2019-03-07 15:58:48
Redis Rpushx 命令用于将一个值插入到已存在的列表尾部(最右边)。如果列表不存在,操作无效。
语法
redis Rpushx 命令基本语法如下:
redis 127.0.0.1:6379> RPUSHX KEY_NAME VALUE1..VALUEN
可用版本
>= 2.2.0
返回值
执行 Rpushx 操作后,列表的长度。
实例
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 -1 1) "hello" 2) "foo"
点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html
The Web Designer's Idea Book
Patrick Mcneil / How / 2008-10-6 / USD 25.00
The Web Designer's Idea Book includes more than 700 websites arranged thematically, so you can find inspiration for layout, color, style and more. Author Patrick McNeil has cataloged more than 5,000 s......一起来看看 《The Web Designer's Idea Book》 这本书的介绍吧!