Stream

XACK

Removes one or multiple messages from the pending entries list of a stream consumer group.

Arguments

keybodystringrequired

The key of the stream.

groupbodystringrequired

The consumer group name.

idbodystring | string[]required

The ID(s) of the message(s) to acknowledge. Can be a single ID or an array of IDs.

Response

number

The number of messages successfully acknowledged.

Single message
const result = await redis.xack("mystream", "mygroup", "1638360173533-0");
Multiple messages
const result = await redis.xack("mystream", "mygroup", [  "1638360173533-0",  "1638360173533-1"]);
Loading search…