mirror of
https://github.com/predis/predis.git
synced 2026-09-01 05:03:28 +00:00
Fix cluster strategy to handle variadic EXISTS (Redis >= 3.0.3).
This commit is contained in:
@@ -43,7 +43,7 @@ abstract class ClusterStrategy implements StrategyInterface
|
||||
|
||||
return array(
|
||||
/* commands operating on the key space */
|
||||
'EXISTS' => $getKeyFromFirstArgument,
|
||||
'EXISTS' => $getKeyFromAllArguments,
|
||||
'DEL' => $getKeyFromAllArguments,
|
||||
'TYPE' => $getKeyFromFirstArgument,
|
||||
'EXPIRE' => $getKeyFromFirstArgument,
|
||||
|
||||
@@ -255,7 +255,7 @@ class PredisStrategyTest extends PredisTestCase
|
||||
{
|
||||
$commands = array(
|
||||
/* commands operating on the key space */
|
||||
'EXISTS' => 'keys-first',
|
||||
'EXISTS' => 'keys-all',
|
||||
'DEL' => 'keys-all',
|
||||
'TYPE' => 'keys-first',
|
||||
'EXPIRE' => 'keys-first',
|
||||
|
||||
@@ -265,7 +265,7 @@ class RedisStrategyTest extends PredisTestCase
|
||||
{
|
||||
$commands = array(
|
||||
/* commands operating on the key space */
|
||||
'EXISTS' => 'keys-first',
|
||||
'EXISTS' => 'keys-all',
|
||||
'DEL' => 'keys-all',
|
||||
'TYPE' => 'keys-first',
|
||||
'EXPIRE' => 'keys-first',
|
||||
|
||||
Reference in New Issue
Block a user