XLEN

Since 1.1.0Streams

Syntax

XLEN key
  • Flags: fast, readonly
  • ACL categories: @fast, @read, @stream
  • Arity: 2

Returns the number of entries in the stream at key.

Reply

  • The count; 0 if the key does not exist.

Examples

> XADD s 1-0 a 1
"1-0"
> XLEN s
(integer) 1