Redis Rpop 命令

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

Redis Rpop 命令用于移除列表的最后一个元素,返回值为移除的元素。

语法

redis 127.0.0.1:6379> RPOP KEY_NAME 

返回值

被移除的元素。

当列表不存在时,返回 nil 。

实例

redis> RPUSH mylist "one"
(integer) 1
redis> RPUSH mylist "two"
(integer) 2
redis> RPUSH mylist "three"
(integer) 3
redis> RPOP mylist
"three"
redis> LRANGE mylist 0 -1
1) "one"
2) "two"
redis> 

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

Invisible Users

Invisible Users

Jenna Burrell / The MIT Press / 2012-5-4 / USD 36.00

The urban youth frequenting the Internet cafes of Accra, Ghana, who are decidedly not members of their country's elite, use the Internet largely as a way to orchestrate encounters across distance and ......一起来看看 《Invisible Users》 这本书的介绍吧!

JSON 在线解析

JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码

URL 编码/解码

URL 编码/解码

SHA 加密

SHA 加密

SHA 加密工具