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

Upgrade ZRANGE Command #1709

Closed
ragnaros2046 opened this issue Mar 25, 2021 · 1 comment · Fixed by #1792
Closed

Upgrade ZRANGE Command #1709

ragnaros2046 opened this issue Mar 25, 2021 · 1 comment · Fixed by #1792

Comments

@ragnaros2046
Copy link

It would be nice to upgrade ZRANGE command to reduce the calls.

Starting with Redis 6.2.0, this command can replace the following commands: ZREVRANGE, ZRANGEBYSCORE, ZREVRANGEBYSCORE, ZRANGEBYLEX and ZREVRANGEBYLEX.

@monkey92t
Copy link
Collaborator

Yes, the ZRange command does support more parameters, but it breaks the compatibility to lower versions.

I don't think that changes can be made at this time.

//old:  ZRANGE key start stop [WITHSCORES]
//new: ZRANGE key min max [BYSCORE|BYLEX] [REV] [LIMIT offset count] [WITHSCORES]

@monkey92t monkey92t linked a pull request Jun 23, 2021 that will close this issue
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.

2 participants