Skip to main content

Arguments

key
str
required
The key of the stream.
group
str
required
The consumer group name.
id
str
default:"$"
The stream entry ID to start consuming from. Use ’$’ to start from the end.
mkstream
bool
Create the stream if it doesn’t exist.

Response

Returns “OK” if the consumer group was created successfully.
result = redis.xgroup_create("mystream", "mygroup", "$")
I