Skip to content

feat(client): add XNACK command with options and tests#3238

Merged
nkaradzhov merged 2 commits intoredis:masterfrom
nkaradzhov:xnack
Apr 22, 2026
Merged

feat(client): add XNACK command with options and tests#3238
nkaradzhov merged 2 commits intoredis:masterfrom
nkaradzhov:xnack

Conversation

@nkaradzhov
Copy link
Copy Markdown
Collaborator

@nkaradzhov nkaradzhov commented Apr 17, 2026

Description

Describe your pull request here


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Note

Low Risk
Low risk: additive new command wiring plus tests; only touches the exported command registry and should not affect existing command behavior.

Overview
Adds client support for Redis 8.8 XNACK, exposing it as xNack/XNACK with support for SILENT/FAIL/FATAL modes, variadic IDs encoded via IDS <len>, and optional RETRYCOUNT/FORCE flags.

Includes unit tests for argument serialization and an integration test that exercises xNack against a real server (gated on Docker Redis >= 8.8), and wires the command into the central commands/index.ts export map.

Reviewed by Cursor Bugbot for commit 970be65. Bugbot is set up for automated code reviews on this repo. Configure here.

@nkaradzhov nkaradzhov requested a review from PavelPashov April 17, 2026 11:40
});
});

testUtils.testWithClient('xNack', async client => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to test with cluster as well?

@nkaradzhov nkaradzhov merged commit 5026db6 into redis:master Apr 22, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants