XLEN

Returns the number of entries in a stream.

Streams · Example verified

Syntax covered here

XLEN key

The case checks the length after adding one explicit-ID entry.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XLEN events
1