Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for ZRANGE.WATCH #1047

Merged
merged 5 commits into from
Oct 9, 2024
Merged

Adds support for ZRANGE.WATCH #1047

merged 5 commits into from
Oct 9, 2024

Conversation

JyotinderSingh
Copy link
Collaborator

@JyotinderSingh JyotinderSingh commented Oct 9, 2024

Add ZRANGE.WATCH command and related functionality

This PR adds support for the ZRANGE.WATCH command, allowing clients to watch for changes to sorted sets. The main changes include:

  1. New integration test for ZRANGE.WATCH command
  2. Added ZAdd and ZRange constants in store/constants.go
  3. Updated watchmanager to support ZRANGE.WATCH
  4. Added ZRANGE.WATCH command metadata
  5. Modified ZADD command to use the WithPutCmd option to properly track the changes.

Both raw RESP protocol and SDK-based tests are included to ensure compatibility.

@JyotinderSingh JyotinderSingh merged commit 209cfd2 into master Oct 9, 2024
2 checks passed
@JyotinderSingh JyotinderSingh deleted the zrange_watch branch October 9, 2024 19:01
sashpawar11 pushed a commit to sashpawar11/dice that referenced this pull request Oct 13, 2024
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.

1 participant