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

The client cannot call GEORADIUS(BYMEMBER)_RO #128

Open
shogo82148 opened this issue Jan 28, 2018 · 0 comments
Open

The client cannot call GEORADIUS(BYMEMBER)_RO #128

shogo82148 opened this issue Jan 28, 2018 · 0 comments

Comments

@shogo82148
Copy link
Contributor

GEORADIUS(BYMEMBER)_RO variants are added redis/redis@f8547e5 , but it seems that the client cannot call them.
Here is sample code.

use strict;
use warnings;
use Redis;
use DDP;

my $redis = Redis->new;

# The example comes from https://redis.io/commands/georadius
$redis->geoadd('Sicily', 13.361389, 38.115556, "Palermo", 15.087269, 37.502669, "Catania");
p $redis->georadius(Sicily => 15, 37, 200, "km", "ASC");
p $redis->georadius_ro(Sicily => 15, 37, 200, "km", "ASC");

I expected that georadius and georadius_ro return same result, but actually not.

\ [
    [0] "Catania",
    [1] "Palermo"
]
\ []

The client converts$redis->georadius_ro(...) to GEORADIUS RO command. But I want to call GEORADIUS_RO command.

$ redis-cli monitor
OK
1517119632.039131 [0 127.0.0.1:51088] "GEOADD" "Sicily" "13.361389" "38.115556" "Palermo" "15.087269" "37.502669" "Catania"
1517119632.039403 [0 127.0.0.1:51088] "GEORADIUS" "Sicily" "15" "37" "200" "km" "ASC"
1517119632.040641 [0 127.0.0.1:51088] "GEORADIUS" "RO" "Sicily" "15" "37" "200" "km" "ASC"
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

No branches or pull requests

1 participant