Search…
⌘K
Ask AI
⌘I
Discord
Blog
Twitter
Console
Overview
Redis
Vector
QStash
Workflow
Search
Box
Realtime
Developer API
Redis
SDKs
Python
Commands
Stream
XLEN
Returns the number of entries inside a stream.
1 min read
Copy as Markdown
Arguments
#
key
str
required
#
The key of the stream.
Response
#
XINFO GROUPS
XPENDING
Get stream length
result
=
redis.xlen(
"mystream"
)