length
英[leŋθ] 美[leŋθ]
n.Length, long; the length of time; (language) sound length; a paragraph, a section
Plural: lengths
redis LLEN command syntax
Function: Return the length of the list key.
Syntax: LLEN key
Description: If key does not exist, key is interpreted as an empty list and 0 is returned. If key is not a list type, an error is returned.
Available versions: >= 1.0.0
Time complexity: O(1)
Return: The length of the list key.
redis LLEN command example
# 空列表 redis> LLEN job (integer) 0 # 非空列表 redis> LPUSH job "cook food" (integer) 1 redis> LPUSH job "have lunch" (integer) 2 redis> LLEN job (integer) 2