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
Add support for GT and LT in ZADD #1789
Comments
If there's interest, I can cook up a PR |
We can keep the more commonly used API, such as: In addition, we can add an API that supports all parameters, such as |
+1 to |
@chorin1 HI~ |
@monkey92t go ahead. |
Expected Behavior
Since Redis 6.2 ZADD has additional useful options -
LT
(less than) andGT
(greater than).There should be corresponding functions in go-redis ->
ZAddLT
&ZAddGT
.Possible Implementation
Since GT, LT and NX options are mutually exclusive there are two ways to go from here:
The text was updated successfully, but these errors were encountered: