Skip to content

feat: Implement GEORADIUS_RO command #5678

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

EricHayter
Copy link
Contributor

Implements the GEORADIUS_RO command which is a read-only variant of the existing GEORADIUS command. Resolves #3882.

Command documentation can be found here.

Implements the GEORADIUS_RO redis command which is a read-only variant of the existing GEORADIUS command.

Signed-off-by: Eric <hayter.eric@gmail.com>
@EricHayter
Copy link
Contributor Author

EricHayter commented Aug 16, 2025

Not sure what additional tests would make sense here, since this command is essentially a strict subset of GEORADIUS and most of the core logic is already covered. I will add some miscellaneous tests to cover argument handling.

Since the main functionality of the command has already been tested in
the existing GEORADIUS tests, only smaller tests were added to ensure
that all arguments associated with the store/write operations of
GEORADIUS command are invalid.

Signed-off-by: Eric <hayter.eric@gmail.com>
Updated logic in parsing of arguments such that arguments for RO variants are not duplicated with the write version

Signed-off-by: Eric <hayter.eric@gmail.com>
@EricHayter EricHayter requested a review from dranikpg August 19, 2025 11:45
Signed-off-by: Eric <hayter.eric@gmail.com>
@EricHayter EricHayter marked this pull request as ready for review August 24, 2025 16:28
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 this pull request may close these issues.

implement GEORADIUS_RO
3 participants