Fix cluster strategy to handle variadic EXISTS (Redis >= 3.0.3).

This commit is contained in:
Daniele Alessandri
2015-07-24 18:28:51 +02:00
parent 82116b0366
commit b996b005cf
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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',