Stream

XLEN

Returns the number of entries inside a stream.

Arguments

keybodystrrequired

The key of the stream.

Response

int

The number of entries in the stream. Returns 0 if the stream does not exist.

Get stream length
result = redis.xlen("mystream")
Loading search…