Search…
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Redis
SDKs
Python
Commands
List
LLEN
Returns the length of the list stored at key.
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key of the list.
Response
#
LINSERT
LMOVE
Example
redis.rpush(
"key"
,
"a"
,
"b"
,
"c"
)
assert
redis.llen(
"key"
)
==
3