XLEN key

#Example

redis> XADD mystream \* item 1
"1609040580250-0"
redis> XADD mystream \* item 2
"1609040580250-1"
redis> XADD mystream \* item 3
"1609040580251-0"
redis> XLEN mystream
(integer) 3

Return the number of entries in a stream

Comments