XINFO
Since 1.1.0Streams
Syntax
XINFOXINFO is a container: its subcommands report on a stream, its consumer groups, and their consumers. Use them to see how long a stream is, how far behind a group is, and which consumers hold unacknowledged entries.
| Subcommand | |
|---|---|
XINFO STREAM | the stream's length, first and last entries, IDs and counters; FULL adds its groups and pending entries |
XINFO GROUPS | each group's consumers, pending count, last delivered ID, entries read and lag |
XINFO CONSUMERS | each consumer of a group, its pending count, and how long since it was seen and since it was last given entries |
XINFO HELP | not implemented in 1.2.0 |
XPENDING lists the pending entries themselves, and XLEN is the quick way to the length alone.
XINFO needs a subcommand and a key: with fewer arguments it answers ERR wrong number of arguments for 'xinfo' command, whatever the subcommand, and a name that is not a subcommand gets ERR unknown subcommand for XINFO.
Examples
> XINFO
(error) ERR wrong number of arguments for 'xinfo' command
> XINFO NOPE jobs
(error) ERR unknown subcommand for XINFO
> XINFO GROUPS jobs
1) 1) "name"
2) "workers"
3) "consumers"
4) (integer) 2
5) "pending"
6) (integer) 3
7) "last-delivered-id"
8) "3-0"
9) "entries-read"
10) (integer) 3
11) "lag"
12) (integer) 0
Subcommands
- XINFO CONSUMERS: Returns, for each consumer of the group: its name, how many entries it has pending, the milliseconds since it last read (idle), and the milliseconds since its last read that returned entries (inactiv…
- XINFO GROUPS: Returns, for each consumer group of the stream: its name, its consumers' count, its pending entries' count, the last ID it delivered, how many entries it has read, and its lag, how many entries it ha…
- XINFO HELP: In Redis, XINFO HELP lists the XINFO subcommands with a line on what each does.
- XINFO STREAM: Returns the stream's length, its first and last entries and IDs, how many entries it has ever had and the greatest it has deleted, its consumer groups' count, and its idempotent-ID settings and count…