-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Hopefully the rangeByScoreWithScores method of ZSetOperations supports Range and Limit parameters #3139
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
Labels
status: duplicate
A duplicate of another issue
Comments
This is a duplicate of the older #1034 ticket. |
kssumin
added a commit
to kssumin/spring-data-redis
that referenced
this issue
May 8, 2025
This commit adds support for the Range and Limit parameters to the rangeByScoreWithScores and reverseRangeByScoreWithScores methods in ZSetOperations interface. The implementation follows the same pattern already used for other methods like rangeByLex, providing a more flexible and consistent API for working with Redis sorted sets. New methods: - rangeByScoreWithScores(K key, Range<Double> range) - rangeByScoreWithScores(K key, Range<Double> range, Limit limit) - reverseRangeByScoreWithScores(K key, Range<Double> range) - reverseRangeByScoreWithScores(K key, Range<Double> range, Limit limit) Unit and integration tests added to verify functionality. Fixes spring-projects#3139 Related to spring-projects#796 and spring-projects#938 Signed-off-by: [Your Full Name] <your.email@example.com> Signed-off-by: kssumin <201566@jnu.ac.kr>
kssumin
added a commit
to kssumin/spring-data-redis
that referenced
this issue
May 8, 2025
This commit adds support for the Range and Limit parameters to the rangeByScoreWithScores and reverseRangeByScoreWithScores methods in ZSetOperations interface. The implementation follows the same pattern already used for other methods like rangeByLex, providing a more flexible and consistent API for working with Redis sorted sets. New methods: - rangeByScoreWithScores(K key, Range<Double> range) - rangeByScoreWithScores(K key, Range<Double> range, Limit limit) - reverseRangeByScoreWithScores(K key, Range<Double> range) - reverseRangeByScoreWithScores(K key, Range<Double> range, Limit limit) Unit and integration tests added to verify functionality. Fixes spring-projects#3139 Related to spring-projects#796 and spring-projects#938 Signed-off-by: kssumin <201566@jnu.ac.kr>
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I encountered a problem at work. I want to calculate the difference from my previous or next score. I need to filter out the situations where I have the same score.
Since the rangeByScoreWithScores method in ZSetOperations currently doesn't have Range and Limit parameters, this is how I currently implement it.
So I would like to ask if it is possible to add a Range and Limit parameter to rangeByScoreWithScores, after all, this is more convenient to use.
If possible, I would be happy to contribute a PR.
The text was updated successfully, but these errors were encountered: