Skip to main content

Arguments

key
string
required
The key of the stream.
group
string
required
The consumer group name.
id
string | string[]
required
The ID(s) of the message(s) to acknowledge. Can be a single ID or an array of IDs.

Response

The number of messages successfully acknowledged.
const result = await redis.xack("mystream", "mygroup", "1638360173533-0");
I