Redis Lpushx 命令

更新时间: 2019-07-07 15:54

Redis Lpushx 将一个值插入到已存在的列表头部,列表不存在时操作无效。

语法

redis 127.0.0.1:6379> LPUSHX KEY_NAME VALUE1.. VALUEN

返回值

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 列表(List)命令

Charlotte's Web

Charlotte's Web

E. B. White / Scholastic / 2004 / USD 0.01

This is the tale of how a little girl named Ferm, with the help of a friendly spider, saved her pig, Wilbur, from the usual fate of nice fat little pigs.一起来看看 《Charlotte's Web》 这本书的介绍吧!

在线进制转换器

在线进制转换器

各进制数互转换器

MD5 加密

MD5 加密

MD5 加密工具

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试