Key(键) String(字符串) Hash(哈希表) List(列表) Set(集合) SortedSet(有序集合) HyperLogLog GEO(地理位置) Pub/Sub(发布/订阅) Transaction(事务) Script(脚本) Connection(连接) Server(服务器)

发布于 2015-09-04 08:55:29 | 714 次阅读 | 评论: 1 | 来源: 网络整理

LPOP key

移除并返回列表 key 的头元素。

  • 可用版本:
  • >= 1.0.0
  • 时间复杂度:
  • O(1)
  • 返回值:
  • 列表的头元素。
    key 不存在时,返回 nil
redis> LLEN course
(integer) 0

redis> RPUSH course algorithm001
(integer) 1

redis> RPUSH course c++101
(integer) 2

redis> LPOP course  # 移除头元素
"algorithm001"
最新网友评论  共有(1)条评论 发布评论 返回顶部
PHPERZ网友 发布于2018-04-11 13:28:28
llbm
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务