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)命令

Object-Oriented Design Heuristics

Object-Oriented Design Heuristics

Arthur J. Riel / Addison-Wesley Professional / 1996-05-10 / USD 64.99

Product Description Here is the first object-oriented development book to provide specific experience-based guidelines to help developers make the right design decisions. This book offers the next ......一起来看看 《Object-Oriented Design Heuristics》 这本书的介绍吧!

HTML 压缩/解压工具

HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具

JS 压缩/解压工具

在线压缩/解压 JS 代码

html转js在线工具

html转js在线工具

html转js在线工具