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

Transaction Condition.SortedSetLengthEqual with min and max score #1331

Closed
luaneko opened this issue Jan 23, 2020 · 0 comments · Fixed by #1332
Closed

Transaction Condition.SortedSetLengthEqual with min and max score #1331

luaneko opened this issue Jan 23, 2020 · 0 comments · Fixed by #1332

Comments

@luaneko
Copy link

luaneko commented Jan 23, 2020

Looking at source, Condition.SortedSetLengthEqual transaction condition is currently using ZCARD key to determine sorted set's length.

It would be nice to have an overload of this method that accepts minimum and maximum score range, using ZCOUNT key min max. This would look at the number of members with score in the given range, not the cardinality of the entire set.

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 a pull request may close this issue.

1 participant