Stream
XINFO GROUPS
List all consumer groups for a stream.
Arguments
keybodystrrequired
The key of the stream.
Response
List[List[Any]]
Returns a list of consumer group information. Each group is represented as a list of key-value pairs.
Get groups info
result = redis.xinfo_groups("mystream")[ ["name", "group1", "consumers", 2, "pending", 0, "last-delivered-id", "1638360173533-0"], ["name", "group2", "consumers", 0, "pending", 3, "last-delivered-id", "0-0"]]