Phpredis: Status on the STORE and STOREDIST for GEORADIUS

Created on 4 Apr 2018  路  3Comments  路  Source: phpredis/phpredis

First of all thanks for everything, couldn't ask for a better extension. I'm just curious what the status is on the STOREand STOREDIST for GEORADIUS I know that it will be added to future versions, but just curious when. Because right now I have to do a GEORADIUS then ZADD each location into a new key which is less than ideal.

Thanks, Julian

improvement

Most helpful comment

Hi,

We do need to get these added to phpredis but in the meantime you can always use rawCommand if you need that functionality now.

Something like this should do it:
$obj_r->rawCommand('georadius', 'Sicily', '15', '37', '200', 'km', 'store', 'dst');

All 3 comments

Hi,

We do need to get these added to phpredis but in the meantime you can always use rawCommand if you need that functionality now.

Something like this should do it:
$obj_r->rawCommand('georadius', 'Sicily', '15', '37', '200', 'km', 'store', 'dst');

Hey,

I've uploaded a branch with support for STORE and STOREDIST here:
https://github.com/phpredis/phpredis/tree/issue.1334

Let me know if it works for you

Works great Michael, thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michael-grunder picture michael-grunder  路  4Comments

LooLx picture LooLx  路  4Comments

rquadling picture rquadling  路  6Comments

galves picture galves  路  6Comments

namjitharavind picture namjitharavind  路  4Comments