Concept Flow - XLEN for stream length
Start
Send XLEN command with stream key
Redis checks if stream exists
Yes No
Count entries
Return count
End
The XLEN command asks Redis for the number of entries in a stream. Redis checks if the stream exists, returns the count if yes, or 0 if no.