XINFOIntrospect a stream, its groups, or its consumers.
| 语法 | XINFO STREAM key [FULL [COUNT count]] | GROUPS key | CONSUMERS key group | HELP |
| 分组 | stream |
| 参数个数 | -2 |
| 起始版本 | 1.0.0 |
| 标志 | readonly |
| 复杂度 | STREAM: O(log N). GROUPS: O(G log N + G log G) — 'lag' reads the stream's head once per group, and the groups are sorted by name. CONSUMERS: O(C log C), sorted by name. STREAM FULL: O(K + G * (P log C + C log C)) for K entries shown and P pending entries per group |
| Redis 兼容性 | differs: answers field for field as valkey 9.1 does; against Redis 8.10, XINFO STREAM lacks the six idmp-* / pids-* / iids-* fields of an XADD option kevy does not have, radix-tree-keys and radix-tree-nodes are the nodes and tree nodes valkey's layout would hold for the same history (kevy keeps no radix tree), and where the two disagree on 'lag' and 'entries-read' — an ENTRIESREAD above entries-added, a group before the first entry with a deletion behind it — kevy answers as valkey does |