Redis Lpushx 命令
Redis 教程
· 2019-03-07 13:58:34
Redis Lpushx 将一个值插入到已存在的列表头部,列表不存在时操作无效。
语法
redis Lpushx 命令基本语法如下:
redis 127.0.0.1:6379> LPUSHX KEY_NAME VALUE1.. VALUEN
可用版本
>= 2.2.0
返回值
LPUSHX 命令执行之后,列表的长度。
实例
127.0.0.1:6379> LPUSH list1 "foo" (integer) 1 127.0.0.1:6379> LPUSHX list1 "bar" (integer) 2 127.0.0.1:6379> LPUSHX list2 "bar" (integer) 0 127.0.0.1:6379> LRANGE list1 0 -1 1) "bar" 2) "foo"
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
The Lean Startup
Eric Ries / Crown Business / 2011-9-13 / USD 26.00
更多中文介绍:http://huing.com Most startups fail. But many of those failures are preventable. The Lean Startup is a new approach being adopted across the globe, chan ging the way companies are built and ......一起来看看 《The Lean Startup》 这本书的介绍吧!