method
RedisClient.xgroup
subcommand: string,
...args: string | number[]
): Promise<any>;
Manage consumer groups for a stream
@param subcommand
CREATE, CREATECONSUMER, DELCONSUMER, DESTROY, SETID
@param args
The stream key and subcommand-specific arguments
@returns
Promise that resolves with the subcommand's result
await redis.xgroup("CREATE", "mystream", "mygroup", "$", "MKSTREAM");
await redis.xgroup("DESTROY", "mystream", "mygroup");