Browse Source

Merge remote-tracking branch 'nitper/cluster_hmset' into v0.8

Daniele Alessandri 12 years ago
parent
commit
536992e277

+ 1 - 0
lib/Predis/Cluster/PredisClusterHashStrategy.php

@@ -140,6 +140,7 @@ class PredisClusterHashStrategy implements CommandHashStrategyInterface
             'HGET'                  => $keyIsFirstArgument,
             'HGETALL'               => $keyIsFirstArgument,
             'HMGET'                 => $keyIsFirstArgument,
+            'HMSET'                 => $keyIsFirstArgument,
             'HINCRBY'               => $keyIsFirstArgument,
             'HINCRBYFLOAT'          => $keyIsFirstArgument,
             'HKEYS'                 => $keyIsFirstArgument,

+ 1 - 0
lib/Predis/Cluster/RedisClusterHashStrategy.php

@@ -127,6 +127,7 @@ class RedisClusterHashStrategy implements CommandHashStrategyInterface
             'HGET'                  => $keyIsFirstArgument,
             'HGETALL'               => $keyIsFirstArgument,
             'HMGET'                 => $keyIsFirstArgument,
+            'HMSET'                 => $keyIsFirstArgument,
             'HINCRBY'               => $keyIsFirstArgument,
             'HINCRBYFLOAT'          => $keyIsFirstArgument,
             'HKEYS'                 => $keyIsFirstArgument,

+ 1 - 0
tests/Predis/Cluster/PredisClusterHashStrategyTest.php

@@ -345,6 +345,7 @@ class PredisClusterHashStrategyTest extends StandardTestCase
             'HGET'                  => 'keys-first',
             'HGETALL'               => 'keys-first',
             'HMGET'                 => 'keys-first',
+            'HMSET'                 => 'keys-first',
             'HINCRBY'               => 'keys-first',
             'HINCRBYFLOAT'          => 'keys-first',
             'HKEYS'                 => 'keys-first',

+ 1 - 0
tests/Predis/Cluster/RedisClusterHashStrategyTest.php

@@ -340,6 +340,7 @@ class RedisClusterHashStrategyTest extends StandardTestCase
             'HGET'                  => 'keys-first',
             'HGETALL'               => 'keys-first',
             'HMGET'                 => 'keys-first',
+            'HMSET'                 => 'keys-first',
             'HINCRBY'               => 'keys-first',
             'HINCRBYFLOAT'          => 'keys-first',
             'HKEYS'                 => 'keys-first',