-
Notifications
You must be signed in to change notification settings - Fork 63
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
Commands with RANGE not fully supported #352
Comments
I've done research on all commands for sorted sets with range arguments. There are three types of ranges available: by rank (by index), by score, and by lex. by rank
Range start / stop in these commands specify an inclusive range with positive or negative numbers for bounds. A negative bound indicates an offset from the end of the sorted set. Neither Now range arguments is modelled after
I'd like to add:
by score
These are fully supported, but are implemented with deprecated commands I can do it, but should I? by lex
These are also fully supported, but with deprecated Note that the |
#989 provided some of the missing implementations. @drmarjanovic will list the missing ones in issue(s) related to Redis 7 migration. |
Background
I was looking into the implementation of the test executor for sorted sets and found that we use scala Range for some commands. But I think this is not reflecting accurately the Redis API. The Redis API supports min and max parameters as floating-point numbers as well as
-inf
and+inf
and open intervals on both min and max buy prepending(
. Scalas Range class only works with ints and has only support for open intervals on the right side, if I am not mistaken. The question is if Scalas Range semantics is enough for our purpose or if we want to precisely map the capabilities of the Redis API into zio-redis ? If so I think we need to come up with a more precise Range implementation.An example of such a command would be
Tasks
The text was updated successfully, but these errors were encountered: