Parcourir la source

Merge remote-tracking branch 'github/pr/159' into v0.8

Daniele Alessandri il y a 10 ans
Parent
commit
c2ae1c612e

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

@@ -73,6 +73,7 @@ class PredisClusterHashStrategy implements CommandHashStrategyInterface
             'GETSET'                => $keyIsFirstArgument,
             'INCR'                  => $keyIsFirstArgument,
             'INCRBY'                => $keyIsFirstArgument,
+            'INCRBYFLOAT'           => $keyIsFirstArgument,
             'SETBIT'                => $keyIsFirstArgument,
             'SETEX'                 => $keyIsFirstArgument,
             'MSET'                  => array($this, 'getKeyFromInterleavedArguments'),

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

@@ -70,6 +70,7 @@ class RedisClusterHashStrategy implements CommandHashStrategyInterface
             'GETSET'                => $keyIsFirstArgument,
             'INCR'                  => $keyIsFirstArgument,
             'INCRBY'                => $keyIsFirstArgument,
+            'INCRBYFLOAT'           => $keyIsFirstArgument,
             'SETBIT'                => $keyIsFirstArgument,
             'SETEX'                 => $keyIsFirstArgument,
             'MSET'                  => array($this, 'getKeyFromInterleavedArguments'),

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

@@ -277,6 +277,7 @@ class PredisClusterHashStrategyTest extends PredisTestCase
             'GETSET'                => 'keys-first',
             'INCR'                  => 'keys-first',
             'INCRBY'                => 'keys-first',
+            'INCRBYFLOAT'           => 'keys-first',
             'SETBIT'                => 'keys-first',
             'SETEX'                 => 'keys-first',
             'MSET'                  => 'keys-interleaved',

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

@@ -288,6 +288,7 @@ class RedisClusterHashStrategyTest extends PredisTestCase
             'GETSET'                => 'keys-first',
             'INCR'                  => 'keys-first',
             'INCRBY'                => 'keys-first',
+            'INCRBYFLOAT'           => 'keys-first',
             'SETBIT'                => 'keys-first',
             'SETEX'                 => 'keys-first',
             'MSET'                  => 'keys-interleaved',

+ 1 - 0
tests/Predis/Replication/ReplicationStrategyTest.php

@@ -286,6 +286,7 @@ class ReplicationStrategyTest extends PredisTestCase
             'GETSET'                => 'write',
             'INCR'                  => 'write',
             'INCRBY'                => 'write',
+            'INCRBYFLOAT'           => 'write',
             'SETBIT'                => 'write',
             'SETEX'                 => 'write',
             'MSET'                  => 'write',