Stream
XLEN
Returns the number of entries inside a stream.
Arguments
keybodystringrequired
The key of the stream.
Response
number
The number of entries in the stream. Returns 0 if the stream does not exist.
Get stream length
const result = await redis.xlen("mystream");