List

LLEN

Returns the length of the list stored at key.

Arguments

keybodystrrequired

The key of the list.

Response

intrequired

The length of the list at key.

Example
redis.rpush("key", "a", "b", "c")assert redis.llen("key") == 3
Loading search…