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
High Performance Python
Micha Gorelick、Ian Ozsvald / O'Reilly Media / 2014-9-10 / USD 39.99
If you're an experienced Python programmer, High Performance Python will guide you through the various routes of code optimization. You'll learn how to use smarter algorithms and leverage peripheral t......一起来看看 《High Performance Python》 这本书的介绍吧!