XINFO GROUPS
Syntax
1. XINFO GROUPS key
ACL categories: @read, @stream, @slow
XINFO GROUPS command returns details of every consumer group that belong to the specified stream <key>.
The command returns the following details for each group:
- name: The consumer group’s name
- consumers: The number of consumers in the group
- pending: The length of the group’s pending entries list (PEL), which are messages that were delivered but are yet to be acknowledged.
- last-delivered-id: The ID of the last entry delivered to the group’s consumers.
Return
Array reply: a list of consumer groups.
Example
1. dragonfly> XINFO GROUPS mystream
2. 1) 1) "name"
3. 2) "mygroup"
4. 3) "consumers"
5. 4) (integer) 2
6. 5) "pending"
7. 6) (integer) 10
8. 7) "last-delivered-id"
9. 8) "1623910467320-1"
10. 2) 1) "name"
11. 2) "another-group"
12. 3) "consumers"
13. 4) (integer) 1
14. 5) "pending"
15. 6) (integer) 1
16. 7) "last-delivered-id"
17. 8) "1623910847311-1"
