xgroup_create
Create a consumer group on a Redis stream to manage parallel message consumption. Specify stream key, group name, and start ID, with option to create the stream if absent.
Instructions
Create a consumer group for a Redis stream.
Args: key (str): The stream key. group_name (str): The consumer group name. start_id (str, optional): Stream ID from which the group starts consuming. mkstream (bool, optional): Create the stream if it does not exist.
Returns: str: Confirmation message or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| mkstream | No | ||
| start_id | No | $ | |
| group_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |