APIActive

Redis Stream XLEN Command

Returns the number of entries inside a Redis stream.

Open source page

Field note

What it does

XLEN returns the number of entries inside a stream. Returns zero if key does not exist. Streams are not auto-deleted when empty due to possible consumer groups.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

Code Examples Legend

Examples

Java (Synchronous - Jedis)

JavaScript (Node.js)

Python

Redis CLI

Redis Streams

Ruby

Rust (Asynchronous)

Stream command summary

Stream command summary (part 2)

Stream command summary (part 3)