LLEN
Since 1.1.0Lists
Syntax
LLEN keyReturns the number of elements in the list at key.
Reply
- The length;
0if the key does not exist. - A
WRONGTYPEerror if the key is not a list.
Examples
> RPUSH l a b c
(integer) 3
> LLEN l
(integer) 3
> LLEN missing
(integer) 0