Redis Lpop 命令

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

Redis Lpop 命令用于移除并返回列表的第一个元素。

语法

redis 127.0.0.1:6379> Lpop KEY_NAME 

返回值

列表的第一个元素。 当列表 key 不存在时,返回 nil 。

实例

redis 127.0.0.1:6379> RPUSH list1 "foo"
(integer) 1
redis 127.0.0.1:6379> RPUSH list1 "bar"
(integer) 2
redis 127.0.0.1:6379> LPOP list1
"foo"

查看更多 Redis 列表(List)命令

Web 2.0 Heroes

Web 2.0 Heroes

Bradley L. Jones / Wiley / 2008-04-14 / USD 24.99

Web 2.0 may be an elusive concept, but one thing is certain: using the Web as merely a means of retrieving and displaying information is history. Today?s Web is immediate, interactive, innovative. It ......一起来看看 《Web 2.0 Heroes》 这本书的介绍吧!

RGB转16进制工具

RGB转16进制工具

RGB HEX 互转工具

随机密码生成器

随机密码生成器

多种字符组合密码

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码