Sitelet https://github.com/redis/node-redis/pull/3211
Skip to content

feat(client): add GCRA ratelimit command @nkaradzhov - #3211

Merged
nkaradzhov merged 3 commits into
redis:masterfrom
nkaradzhov:gcra
Apr 17, 2026
Merged

nkaradzhov merged 3 commits into
redis:masterfrom
nkaradzhov:gcra

Conversation

@nkaradzhov

@nkaradzhov nkaradzhov commented Mar 27, 2026 •

Copy link
Copy Markdown
Collaborator

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: introduces a new command implementation and wiring with scoped tests and documentation, with minimal impact on existing command behavior.

Overview
Adds a new client.gcra() command implementation for Redis 8.8+ that supports optional TOKENS weighting and transforms the tuple reply into a typed object.

Includes command wiring in the client command index, a dedicated spec covering argument serialization, weighted requests, and RESP3 reply shape, plus a new examples/gcra-rate-limiting.js and README entry to demonstrate usage.

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

@nkaradzhov
nkaradzhov merged commit f4e4bf1 into redis:master Apr 17, 2026
16 checks passed
@nkaradzhov
nkaradzhov deleted the gcra branch April 17, 2026 11:37
nkaradzhov added a commit to nkaradzhov/node-redis that referenced this pull request May 19, 2026
GCRA was removed from the Redis OSS 8.8 server image (8.8-rc1), so the
client-side command and its example/registry entries are reverted.

This reverts the GCRA additions from redis#3211.
nkaradzhov added a commit that referenced this pull request May 19, 2026
…#3284)

* chore(tests): bump default docker test image to 8.8-rc1

* revert(client): remove GCRA ratelimit command

GCRA was removed from the Redis OSS 8.8 server image (8.8-rc1), so the
client-side command and its example/registry entries are reverted.

This reverts the GCRA additions from #3211.
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