Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
str
required
The key of the stream.
group
str
required
The consumer group name.
consumer
str
required
The consumer name to create.

Response

Returns 1 if the consumer was created, 0 if it already existed.
result = redis.xgroup_createconsumer("mystream", "mygroup", "consumer1")