xgroup_create
Create a consumer group for a Redis stream to coordinate message consumption among multiple consumers, with options to set a starting stream ID and create the stream if missing.
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 | ||
| group_name | Yes | ||
| start_id | No | $ | |
| mkstream | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |