XGROUP
Creates stream consumer groups and consumers, or destroys a group.
Streams · Example verified
Syntax covered here
XGROUP CREATE key group id | XGROUP CREATECONSUMER key group consumer | XGROUP DESTROY key groupThe stream exists before CREATE; the case then creates a consumer and destroys the group.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XGROUP CREATE events workers 0
"OK"
# connection: default
> XGROUP CREATECONSUMER events workers alice
1
# connection: default
> XGROUP DESTROY events workers
1