Docs › Commands › StreamsXLENSince 1.1.0StreamsSyntaxXLEN keyFlags: fast, readonlyACL categories: @fast, @read, @streamArity: 2Returns 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 Related commandsXINFOXNACKXIDMPRECORDXPENDINGXGROUPXRANGEXDELEXXREADXDELXREADGROUP