Handle DUMP and RESTORE with Predis\Connection\PredisCluster.

This commit is contained in:
Daniele Alessandri
2013-03-30 14:38:49 +01:00
parent 68d972a1b1
commit 5b771704d3
2 changed files with 4 additions and 0 deletions
@@ -58,6 +58,8 @@ class PredisClusterHashStrategy implements CommandHashStrategyInterface
'TTL' => $keyIsFirstArgument,
'PTTL' => $keyIsFirstArgument,
'SORT' => $keyIsFirstArgument, // TODO
'DUMP' => $keyIsFirstArgument,
'RESTORE' => $keyIsFirstArgument,
/* commands operating on string values */
'APPEND' => $keyIsFirstArgument,
@@ -263,6 +263,8 @@ class PredisClusterHashStrategyTest extends StandardTestCase
'TTL' => 'keys-first',
'PTTL' => 'keys-first',
'SORT' => 'keys-first', // TODO
'DUMP' => 'keys-first',
'RESTORE' => 'keys-first',
/* commands operating on string values */
'APPEND' => 'keys-first',