Implement GEOSEARCH and GEOSEARCHSTORE for RedisCluster. (#2277)

* Implement GEOSEARCH and GEOSEARCHSTORE for RedisCluster.

See #1894
This commit is contained in:
Michael Grunder
2022-12-01 21:54:15 -08:00
committed by GitHub
parent 7121aaae5c
commit fa5d1af9ff
11 changed files with 166 additions and 58 deletions
+10
View File
@@ -367,6 +367,16 @@ class RedisCluster {
*/
public function georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = []): mixed;
/**
* @see https://redis.io/commands/geosearch
*/
public function geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = []): RedisCluster|array;
/**
* @see https://redis.io/commands/geosearchstore
*/
public function geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = []): RedisCluster|array|int|false;
/**
* @see Redis::get
*/