LLEN
语法
LLEN key
- 从以下位置开始可用:
- 1.0.0
- 时间复杂度:
- O(1)
- ACL 类别:
-
@read,@list,@fast,
返回存储在key.
如果key不存在,则它被解释为空列表,并且0返回。
当存储在key不是列表。
例子
Give these commands a try in the interactive console:
RESP2/RESP3 Reply
Integer reply: the length of the list.