Skip to content

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

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

feat(client): add GCRA ratelimit command @nkaradzhov#3211
nkaradzhov merged 3 commits intoredis:masterfrom
nkaradzhov:gcra

Conversation

@nkaradzhov
Copy link
Copy Markdown
Collaborator

@nkaradzhov nkaradzhov commented Mar 27, 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: 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
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