XGROUP CREATECONSUMER
Syntax
XGROUP CREATECONSUMER key groupname consumername
- Available since:
- 6.2.0
- Time complexity:
- O(1)
- ACL categories:
-
@write,@stream,@slow,
Create a consumer named <consumername> in the consumer group <groupname> of the stream that's stored at <key>.
Consumers are also created automatically whenever an operation, such as XREADGROUP, references a consumer that doesn't exist.
This is valid for XREADGROUP only when there is data in the stream.
Return
Integer reply: the number of created consumers (0 or 1)
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.