Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

XINFO

Last updated
XINFO subcommand [argument ...]
Group
Stream
Arity
-2 (at least 2 words, counting the command name)
Flags
read-only
HotKV Cloud
All plans
On-Premise
no license needed

XINFO is a container for the commands that report on a stream and its consumer groups.

Subcommand What it does
XINFO STREAM A stream’s length, IDs and first and last entries; with FULL, its entries and groups in detail.
XINFO GROUPS The stream’s consumer groups.
XINFO CONSUMERS The consumers of one group.
XINFO HELP List the subcommands.

An unknown subcommand replies ERR unknown subcommand 'name'. Try XINFO HELP. Every subcommand replies ERR no such key when the stream does not exist.

127.0.0.1:6379> XINFO GROUPS nosuchstream
(error) ERR no such key

Same subcommands as Redis 7 and Valkey 8.

XGROUP, XPENDING, XLEN