Arguments
str
required
The key of the stream.
str
required
The consumer group name.
str
required
The consumer name to create.
Response
Returns 1 if the consumer was created, 0 if it already existed.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
result = redis.xgroup_createconsumer("mystream", "mygroup", "consumer1")
Create a new consumer in an existing consumer group.
result = redis.xgroup_createconsumer("mystream", "mygroup", "consumer1")
Was this page helpful?