mirror of
https://github.com/predis/predis.git
synced 2026-10-10 13:57:22 +00:00
Add new command: GEORADIUS (Redis 3.2.0).
This commit is contained in:
@@ -165,6 +165,23 @@ class RedisStrategyTest extends PredisTestCase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @group disconnected
|
||||
*/
|
||||
public function testKeysForGeoradiusCommand()
|
||||
{
|
||||
$strategy = $this->getClusterStrategy();
|
||||
$profile = Profile\Factory::getDevelopment();
|
||||
|
||||
$commandID = 'GEORADIUS';
|
||||
|
||||
$command = $profile->createCommand($commandID, array('{key}:1', 10, 10, 1, 'km'));
|
||||
$this->assertNotNull($strategy->getSlot($command), $commandID);
|
||||
|
||||
$command = $profile->createCommand($commandID, array('{key}:1', 10, 10, 1, 'km', 'store', '{key}:2', 'storedist', '{key}:3'));
|
||||
$this->assertNotNull($strategy->getSlot($command), $commandID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group disconnected
|
||||
*/
|
||||
@@ -393,6 +410,7 @@ class RedisStrategyTest extends PredisTestCase
|
||||
'GEOHASH' => 'keys-first',
|
||||
'GEOPOS' => 'keys-first',
|
||||
'GEODIST' => 'keys-first',
|
||||
'GEORADIUS' => 'keys-georadius',
|
||||
);
|
||||
|
||||
if (isset($type)) {
|
||||
|
||||
Reference in New Issue
Block a user