diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fd3c7b..5446345d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +v2.0.0 (201x-xx-xx) +================================================================================ + +- Classes for Redis commands have been moved into the new `Predis\Command\Redis` + namespace. + + v1.1.0 (2016-06-02) ================================================================================ diff --git a/bin/create-command-test b/bin/create-command-test index 930797df..bfab2663 100755 --- a/bin/create-command-test +++ b/bin/create-command-test @@ -15,7 +15,7 @@ // of a test case to test a Redis command by specifying the name of the class // in the Predis\Command namespace (only classes in this namespace are valid). // For example, to generate a test case for SET (which is represented by the -// Predis\Command\StringSet class): +// Predis\Command\Redis\StringSet class): // // $ ./bin/generate-command-test --class=StringSet // @@ -92,8 +92,8 @@ class CommandTestCaseGenerator throw new RuntimeException("Missing 'class' option."); } - $options['fqn'] = "Predis\\Command\\{$options['class']}"; - $options['path'] = "Command/{$options['class']}.php"; + $options['fqn'] = "Predis\\Command\\Redis\\{$options['class']}"; + $options['path'] = "Command/Redis/{$options['class']}.php"; $source = __DIR__.'/../src/'.$options['path']; if (!file_exists($source)) { @@ -173,7 +173,7 @@ class CommandTestCaseGenerator * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands diff --git a/src/Command/ConnectionAuth.php b/src/Command/Redis/ConnectionAuth.php similarity index 88% rename from src/Command/ConnectionAuth.php rename to src/Command/Redis/ConnectionAuth.php index c8c9dedc..cfc352cb 100644 --- a/src/Command/ConnectionAuth.php +++ b/src/Command/Redis/ConnectionAuth.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/auth diff --git a/src/Command/ConnectionEcho.php b/src/Command/Redis/ConnectionEcho.php similarity index 88% rename from src/Command/ConnectionEcho.php rename to src/Command/Redis/ConnectionEcho.php index fd496097..abcbd162 100644 --- a/src/Command/ConnectionEcho.php +++ b/src/Command/Redis/ConnectionEcho.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/echo diff --git a/src/Command/ConnectionPing.php b/src/Command/Redis/ConnectionPing.php similarity index 88% rename from src/Command/ConnectionPing.php rename to src/Command/Redis/ConnectionPing.php index fa9d7346..62477a90 100644 --- a/src/Command/ConnectionPing.php +++ b/src/Command/Redis/ConnectionPing.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/ping diff --git a/src/Command/ConnectionQuit.php b/src/Command/Redis/ConnectionQuit.php similarity index 88% rename from src/Command/ConnectionQuit.php rename to src/Command/Redis/ConnectionQuit.php index e59e31e3..0fb7ac2e 100644 --- a/src/Command/ConnectionQuit.php +++ b/src/Command/Redis/ConnectionQuit.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/quit diff --git a/src/Command/ConnectionSelect.php b/src/Command/Redis/ConnectionSelect.php similarity index 88% rename from src/Command/ConnectionSelect.php rename to src/Command/Redis/ConnectionSelect.php index 1da82567..24a033a9 100644 --- a/src/Command/ConnectionSelect.php +++ b/src/Command/Redis/ConnectionSelect.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/select diff --git a/src/Command/GeospatialGeoAdd.php b/src/Command/Redis/GeospatialGeoAdd.php similarity index 93% rename from src/Command/GeospatialGeoAdd.php rename to src/Command/Redis/GeospatialGeoAdd.php index adca2ca5..3d6b740b 100644 --- a/src/Command/GeospatialGeoAdd.php +++ b/src/Command/Redis/GeospatialGeoAdd.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/geoadd diff --git a/src/Command/GeospatialGeoDist.php b/src/Command/Redis/GeospatialGeoDist.php similarity index 89% rename from src/Command/GeospatialGeoDist.php rename to src/Command/Redis/GeospatialGeoDist.php index 17c5f549..c8ab8136 100644 --- a/src/Command/GeospatialGeoDist.php +++ b/src/Command/Redis/GeospatialGeoDist.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/geodist diff --git a/src/Command/GeospatialGeoHash.php b/src/Command/Redis/GeospatialGeoHash.php similarity index 93% rename from src/Command/GeospatialGeoHash.php rename to src/Command/Redis/GeospatialGeoHash.php index 2eccaf4f..d27f7ba6 100644 --- a/src/Command/GeospatialGeoHash.php +++ b/src/Command/Redis/GeospatialGeoHash.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/geohash diff --git a/src/Command/GeospatialGeoPos.php b/src/Command/Redis/GeospatialGeoPos.php similarity index 92% rename from src/Command/GeospatialGeoPos.php rename to src/Command/Redis/GeospatialGeoPos.php index 6b7a9a3d..ee64f4be 100644 --- a/src/Command/GeospatialGeoPos.php +++ b/src/Command/Redis/GeospatialGeoPos.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/geopos diff --git a/src/Command/GeospatialGeoRadius.php b/src/Command/Redis/GeospatialGeoRadius.php similarity index 96% rename from src/Command/GeospatialGeoRadius.php rename to src/Command/Redis/GeospatialGeoRadius.php index f2052148..b7209a0b 100644 --- a/src/Command/GeospatialGeoRadius.php +++ b/src/Command/Redis/GeospatialGeoRadius.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/georadius diff --git a/src/Command/GeospatialGeoRadiusByMember.php b/src/Command/Redis/GeospatialGeoRadiusByMember.php similarity index 89% rename from src/Command/GeospatialGeoRadiusByMember.php rename to src/Command/Redis/GeospatialGeoRadiusByMember.php index abfff7b4..32875685 100644 --- a/src/Command/GeospatialGeoRadiusByMember.php +++ b/src/Command/Redis/GeospatialGeoRadiusByMember.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/georadiusbymember diff --git a/src/Command/HashDelete.php b/src/Command/Redis/HashDelete.php similarity index 91% rename from src/Command/HashDelete.php rename to src/Command/Redis/HashDelete.php index d5d4c38c..d6db4159 100644 --- a/src/Command/HashDelete.php +++ b/src/Command/Redis/HashDelete.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hdel diff --git a/src/Command/HashExists.php b/src/Command/Redis/HashExists.php similarity index 88% rename from src/Command/HashExists.php rename to src/Command/Redis/HashExists.php index ed8dc89f..e2a9455b 100644 --- a/src/Command/HashExists.php +++ b/src/Command/Redis/HashExists.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hexists diff --git a/src/Command/HashGet.php b/src/Command/Redis/HashGet.php similarity index 88% rename from src/Command/HashGet.php rename to src/Command/Redis/HashGet.php index 20f33da5..2691986e 100644 --- a/src/Command/HashGet.php +++ b/src/Command/Redis/HashGet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hget diff --git a/src/Command/HashGetAll.php b/src/Command/Redis/HashGetAll.php similarity index 92% rename from src/Command/HashGetAll.php rename to src/Command/Redis/HashGetAll.php index d6986752..43d7f1a8 100644 --- a/src/Command/HashGetAll.php +++ b/src/Command/Redis/HashGetAll.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hgetall diff --git a/src/Command/HashGetMultiple.php b/src/Command/Redis/HashGetMultiple.php similarity index 91% rename from src/Command/HashGetMultiple.php rename to src/Command/Redis/HashGetMultiple.php index 820ce958..0419d267 100644 --- a/src/Command/HashGetMultiple.php +++ b/src/Command/Redis/HashGetMultiple.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hmget diff --git a/src/Command/HashIncrementBy.php b/src/Command/Redis/HashIncrementBy.php similarity index 88% rename from src/Command/HashIncrementBy.php rename to src/Command/Redis/HashIncrementBy.php index a37359ff..452391ed 100644 --- a/src/Command/HashIncrementBy.php +++ b/src/Command/Redis/HashIncrementBy.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hincrby diff --git a/src/Command/HashIncrementByFloat.php b/src/Command/Redis/HashIncrementByFloat.php similarity index 89% rename from src/Command/HashIncrementByFloat.php rename to src/Command/Redis/HashIncrementByFloat.php index bce9714f..0146b523 100644 --- a/src/Command/HashIncrementByFloat.php +++ b/src/Command/Redis/HashIncrementByFloat.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hincrbyfloat diff --git a/src/Command/HashKeys.php b/src/Command/Redis/HashKeys.php similarity index 88% rename from src/Command/HashKeys.php rename to src/Command/Redis/HashKeys.php index 28266020..8b6b46d7 100644 --- a/src/Command/HashKeys.php +++ b/src/Command/Redis/HashKeys.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hkeys diff --git a/src/Command/HashLength.php b/src/Command/Redis/HashLength.php similarity index 88% rename from src/Command/HashLength.php rename to src/Command/Redis/HashLength.php index d70926f1..4a0fc9bc 100644 --- a/src/Command/HashLength.php +++ b/src/Command/Redis/HashLength.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hlen diff --git a/src/Command/HashScan.php b/src/Command/Redis/HashScan.php similarity index 96% rename from src/Command/HashScan.php rename to src/Command/Redis/HashScan.php index afde74eb..2304e9ee 100644 --- a/src/Command/HashScan.php +++ b/src/Command/Redis/HashScan.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hscan diff --git a/src/Command/HashSet.php b/src/Command/Redis/HashSet.php similarity index 88% rename from src/Command/HashSet.php rename to src/Command/Redis/HashSet.php index cfff3c2d..f9a1ad60 100644 --- a/src/Command/HashSet.php +++ b/src/Command/Redis/HashSet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hset diff --git a/src/Command/HashSetMultiple.php b/src/Command/Redis/HashSetMultiple.php similarity index 93% rename from src/Command/HashSetMultiple.php rename to src/Command/Redis/HashSetMultiple.php index 6069e2ad..debc7427 100644 --- a/src/Command/HashSetMultiple.php +++ b/src/Command/Redis/HashSetMultiple.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hmset diff --git a/src/Command/HashSetPreserve.php b/src/Command/Redis/HashSetPreserve.php similarity index 88% rename from src/Command/HashSetPreserve.php rename to src/Command/Redis/HashSetPreserve.php index 7a291164..489ef477 100644 --- a/src/Command/HashSetPreserve.php +++ b/src/Command/Redis/HashSetPreserve.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hsetnx diff --git a/src/Command/HashStringLength.php b/src/Command/Redis/HashStringLength.php similarity index 89% rename from src/Command/HashStringLength.php rename to src/Command/Redis/HashStringLength.php index 7cfda80d..213c86b4 100644 --- a/src/Command/HashStringLength.php +++ b/src/Command/Redis/HashStringLength.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hstrlen diff --git a/src/Command/HashValues.php b/src/Command/Redis/HashValues.php similarity index 88% rename from src/Command/HashValues.php rename to src/Command/Redis/HashValues.php index 0a5ea5f6..aa16757c 100644 --- a/src/Command/HashValues.php +++ b/src/Command/Redis/HashValues.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/hvals diff --git a/src/Command/HyperLogLogAdd.php b/src/Command/Redis/HyperLogLogAdd.php similarity index 91% rename from src/Command/HyperLogLogAdd.php rename to src/Command/Redis/HyperLogLogAdd.php index 8fe49fc9..a736c01e 100644 --- a/src/Command/HyperLogLogAdd.php +++ b/src/Command/Redis/HyperLogLogAdd.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pfadd diff --git a/src/Command/HyperLogLogCount.php b/src/Command/Redis/HyperLogLogCount.php similarity index 91% rename from src/Command/HyperLogLogCount.php rename to src/Command/Redis/HyperLogLogCount.php index 0afe5427..d4661d60 100644 --- a/src/Command/HyperLogLogCount.php +++ b/src/Command/Redis/HyperLogLogCount.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pfcount diff --git a/src/Command/HyperLogLogMerge.php b/src/Command/Redis/HyperLogLogMerge.php similarity index 91% rename from src/Command/HyperLogLogMerge.php rename to src/Command/Redis/HyperLogLogMerge.php index c160be5b..2121098a 100644 --- a/src/Command/HyperLogLogMerge.php +++ b/src/Command/Redis/HyperLogLogMerge.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pfmerge diff --git a/src/Command/KeyDelete.php b/src/Command/Redis/KeyDelete.php similarity index 91% rename from src/Command/KeyDelete.php rename to src/Command/Redis/KeyDelete.php index 89bdfdb7..390105ae 100644 --- a/src/Command/KeyDelete.php +++ b/src/Command/Redis/KeyDelete.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/del diff --git a/src/Command/KeyDump.php b/src/Command/Redis/KeyDump.php similarity index 88% rename from src/Command/KeyDump.php rename to src/Command/Redis/KeyDump.php index 6d9c4880..2fd723e6 100644 --- a/src/Command/KeyDump.php +++ b/src/Command/Redis/KeyDump.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/dump diff --git a/src/Command/KeyExists.php b/src/Command/Redis/KeyExists.php similarity index 88% rename from src/Command/KeyExists.php rename to src/Command/Redis/KeyExists.php index 29e06480..a71ae581 100644 --- a/src/Command/KeyExists.php +++ b/src/Command/Redis/KeyExists.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/exists diff --git a/src/Command/KeyExpire.php b/src/Command/Redis/KeyExpire.php similarity index 88% rename from src/Command/KeyExpire.php rename to src/Command/Redis/KeyExpire.php index 66f44066..d9a6b91a 100644 --- a/src/Command/KeyExpire.php +++ b/src/Command/Redis/KeyExpire.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/expire diff --git a/src/Command/KeyExpireAt.php b/src/Command/Redis/KeyExpireAt.php similarity index 88% rename from src/Command/KeyExpireAt.php rename to src/Command/Redis/KeyExpireAt.php index 0ae1b2d4..7bde05ed 100644 --- a/src/Command/KeyExpireAt.php +++ b/src/Command/Redis/KeyExpireAt.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/expireat diff --git a/src/Command/KeyKeys.php b/src/Command/Redis/KeyKeys.php similarity index 88% rename from src/Command/KeyKeys.php rename to src/Command/Redis/KeyKeys.php index 6d74c40d..2a17c1d3 100644 --- a/src/Command/KeyKeys.php +++ b/src/Command/Redis/KeyKeys.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/keys diff --git a/src/Command/KeyMigrate.php b/src/Command/Redis/KeyMigrate.php similarity index 94% rename from src/Command/KeyMigrate.php rename to src/Command/Redis/KeyMigrate.php index 3324ef94..877f8730 100644 --- a/src/Command/KeyMigrate.php +++ b/src/Command/Redis/KeyMigrate.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/migrate diff --git a/src/Command/KeyMove.php b/src/Command/Redis/KeyMove.php similarity index 88% rename from src/Command/KeyMove.php rename to src/Command/Redis/KeyMove.php index c849f08d..12581657 100644 --- a/src/Command/KeyMove.php +++ b/src/Command/Redis/KeyMove.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/move diff --git a/src/Command/KeyPersist.php b/src/Command/Redis/KeyPersist.php similarity index 88% rename from src/Command/KeyPersist.php rename to src/Command/Redis/KeyPersist.php index f0cb679b..a4acfad0 100644 --- a/src/Command/KeyPersist.php +++ b/src/Command/Redis/KeyPersist.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/persist diff --git a/src/Command/KeyPreciseExpire.php b/src/Command/Redis/KeyPreciseExpire.php similarity index 89% rename from src/Command/KeyPreciseExpire.php rename to src/Command/Redis/KeyPreciseExpire.php index 258ec476..7782549f 100644 --- a/src/Command/KeyPreciseExpire.php +++ b/src/Command/Redis/KeyPreciseExpire.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pexpire diff --git a/src/Command/KeyPreciseExpireAt.php b/src/Command/Redis/KeyPreciseExpireAt.php similarity index 89% rename from src/Command/KeyPreciseExpireAt.php rename to src/Command/Redis/KeyPreciseExpireAt.php index e4192187..3e8600cb 100644 --- a/src/Command/KeyPreciseExpireAt.php +++ b/src/Command/Redis/KeyPreciseExpireAt.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pexpireat diff --git a/src/Command/KeyPreciseTimeToLive.php b/src/Command/Redis/KeyPreciseTimeToLive.php similarity index 89% rename from src/Command/KeyPreciseTimeToLive.php rename to src/Command/Redis/KeyPreciseTimeToLive.php index bdcd34b9..34372ac4 100644 --- a/src/Command/KeyPreciseTimeToLive.php +++ b/src/Command/Redis/KeyPreciseTimeToLive.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pttl diff --git a/src/Command/KeyRandom.php b/src/Command/Redis/KeyRandom.php similarity index 91% rename from src/Command/KeyRandom.php rename to src/Command/Redis/KeyRandom.php index b208b2db..1a4065e0 100644 --- a/src/Command/KeyRandom.php +++ b/src/Command/Redis/KeyRandom.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/randomkey diff --git a/src/Command/KeyRename.php b/src/Command/Redis/KeyRename.php similarity index 88% rename from src/Command/KeyRename.php rename to src/Command/Redis/KeyRename.php index 82e44fb2..4c1da5b1 100644 --- a/src/Command/KeyRename.php +++ b/src/Command/Redis/KeyRename.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/rename diff --git a/src/Command/KeyRenamePreserve.php b/src/Command/Redis/KeyRenamePreserve.php similarity index 89% rename from src/Command/KeyRenamePreserve.php rename to src/Command/Redis/KeyRenamePreserve.php index 97933599..d8c418bf 100644 --- a/src/Command/KeyRenamePreserve.php +++ b/src/Command/Redis/KeyRenamePreserve.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/renamenx diff --git a/src/Command/KeyRestore.php b/src/Command/Redis/KeyRestore.php similarity index 88% rename from src/Command/KeyRestore.php rename to src/Command/Redis/KeyRestore.php index a5b0b2db..803655c5 100644 --- a/src/Command/KeyRestore.php +++ b/src/Command/Redis/KeyRestore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/restore diff --git a/src/Command/KeyScan.php b/src/Command/Redis/KeyScan.php similarity index 95% rename from src/Command/KeyScan.php rename to src/Command/Redis/KeyScan.php index 05f5bb3a..e4985144 100644 --- a/src/Command/KeyScan.php +++ b/src/Command/Redis/KeyScan.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/scan diff --git a/src/Command/KeySort.php b/src/Command/Redis/KeySort.php similarity index 96% rename from src/Command/KeySort.php rename to src/Command/Redis/KeySort.php index fd449f13..42ae60b7 100644 --- a/src/Command/KeySort.php +++ b/src/Command/Redis/KeySort.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sort diff --git a/src/Command/KeyTimeToLive.php b/src/Command/Redis/KeyTimeToLive.php similarity index 88% rename from src/Command/KeyTimeToLive.php rename to src/Command/Redis/KeyTimeToLive.php index 67697a6f..642b12d4 100644 --- a/src/Command/KeyTimeToLive.php +++ b/src/Command/Redis/KeyTimeToLive.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/ttl diff --git a/src/Command/KeyType.php b/src/Command/Redis/KeyType.php similarity index 88% rename from src/Command/KeyType.php rename to src/Command/Redis/KeyType.php index f4f06e45..13210184 100644 --- a/src/Command/KeyType.php +++ b/src/Command/Redis/KeyType.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/type diff --git a/src/Command/ListIndex.php b/src/Command/Redis/ListIndex.php similarity index 88% rename from src/Command/ListIndex.php rename to src/Command/Redis/ListIndex.php index 27c64be7..0bceb887 100644 --- a/src/Command/ListIndex.php +++ b/src/Command/Redis/ListIndex.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lindex diff --git a/src/Command/ListInsert.php b/src/Command/Redis/ListInsert.php similarity index 88% rename from src/Command/ListInsert.php rename to src/Command/Redis/ListInsert.php index 7d53d11b..81f9dccc 100644 --- a/src/Command/ListInsert.php +++ b/src/Command/Redis/ListInsert.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/linsert diff --git a/src/Command/ListLength.php b/src/Command/Redis/ListLength.php similarity index 88% rename from src/Command/ListLength.php rename to src/Command/Redis/ListLength.php index 6495beb7..635342a3 100644 --- a/src/Command/ListLength.php +++ b/src/Command/Redis/ListLength.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/llen diff --git a/src/Command/ListPopFirst.php b/src/Command/Redis/ListPopFirst.php similarity index 88% rename from src/Command/ListPopFirst.php rename to src/Command/Redis/ListPopFirst.php index 84d5d673..762410f1 100644 --- a/src/Command/ListPopFirst.php +++ b/src/Command/Redis/ListPopFirst.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lpop diff --git a/src/Command/ListPopFirstBlocking.php b/src/Command/Redis/ListPopFirstBlocking.php similarity index 92% rename from src/Command/ListPopFirstBlocking.php rename to src/Command/Redis/ListPopFirstBlocking.php index 7dc7c000..90dd9340 100644 --- a/src/Command/ListPopFirstBlocking.php +++ b/src/Command/Redis/ListPopFirstBlocking.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/blpop diff --git a/src/Command/ListPopLast.php b/src/Command/Redis/ListPopLast.php similarity index 88% rename from src/Command/ListPopLast.php rename to src/Command/Redis/ListPopLast.php index 9e92db5f..333c83b8 100644 --- a/src/Command/ListPopLast.php +++ b/src/Command/Redis/ListPopLast.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/rpop diff --git a/src/Command/ListPopLastBlocking.php b/src/Command/Redis/ListPopLastBlocking.php similarity index 89% rename from src/Command/ListPopLastBlocking.php rename to src/Command/Redis/ListPopLastBlocking.php index 781eb919..b7947834 100644 --- a/src/Command/ListPopLastBlocking.php +++ b/src/Command/Redis/ListPopLastBlocking.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/brpop diff --git a/src/Command/ListPopLastPushHead.php b/src/Command/Redis/ListPopLastPushHead.php similarity index 89% rename from src/Command/ListPopLastPushHead.php rename to src/Command/Redis/ListPopLastPushHead.php index f430eb22..33d0bfd5 100644 --- a/src/Command/ListPopLastPushHead.php +++ b/src/Command/Redis/ListPopLastPushHead.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/rpoplpush diff --git a/src/Command/ListPopLastPushHeadBlocking.php b/src/Command/Redis/ListPopLastPushHeadBlocking.php similarity index 89% rename from src/Command/ListPopLastPushHeadBlocking.php rename to src/Command/Redis/ListPopLastPushHeadBlocking.php index ee9c93c8..8f962d2e 100644 --- a/src/Command/ListPopLastPushHeadBlocking.php +++ b/src/Command/Redis/ListPopLastPushHeadBlocking.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/brpoplpush diff --git a/src/Command/ListPushHead.php b/src/Command/Redis/ListPushHead.php similarity index 88% rename from src/Command/ListPushHead.php rename to src/Command/Redis/ListPushHead.php index 74bf7c49..4bf403e4 100644 --- a/src/Command/ListPushHead.php +++ b/src/Command/Redis/ListPushHead.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lpush diff --git a/src/Command/ListPushHeadX.php b/src/Command/Redis/ListPushHeadX.php similarity index 88% rename from src/Command/ListPushHeadX.php rename to src/Command/Redis/ListPushHeadX.php index 8e136b88..53a77521 100644 --- a/src/Command/ListPushHeadX.php +++ b/src/Command/Redis/ListPushHeadX.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lpushx diff --git a/src/Command/ListPushTail.php b/src/Command/Redis/ListPushTail.php similarity index 91% rename from src/Command/ListPushTail.php rename to src/Command/Redis/ListPushTail.php index f2a057c0..85b9307b 100644 --- a/src/Command/ListPushTail.php +++ b/src/Command/Redis/ListPushTail.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/rpush diff --git a/src/Command/ListPushTailX.php b/src/Command/Redis/ListPushTailX.php similarity index 88% rename from src/Command/ListPushTailX.php rename to src/Command/Redis/ListPushTailX.php index 1af3645b..f85455f9 100644 --- a/src/Command/ListPushTailX.php +++ b/src/Command/Redis/ListPushTailX.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/rpushx diff --git a/src/Command/ListRange.php b/src/Command/Redis/ListRange.php similarity index 88% rename from src/Command/ListRange.php rename to src/Command/Redis/ListRange.php index 32a21a6e..3d5cccca 100644 --- a/src/Command/ListRange.php +++ b/src/Command/Redis/ListRange.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lrange diff --git a/src/Command/ListRemove.php b/src/Command/Redis/ListRemove.php similarity index 88% rename from src/Command/ListRemove.php rename to src/Command/Redis/ListRemove.php index c5800899..b4788b06 100644 --- a/src/Command/ListRemove.php +++ b/src/Command/Redis/ListRemove.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lrem diff --git a/src/Command/ListSet.php b/src/Command/Redis/ListSet.php similarity index 88% rename from src/Command/ListSet.php rename to src/Command/Redis/ListSet.php index 5e59864d..cb8e500e 100644 --- a/src/Command/ListSet.php +++ b/src/Command/Redis/ListSet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lset diff --git a/src/Command/ListTrim.php b/src/Command/Redis/ListTrim.php similarity index 88% rename from src/Command/ListTrim.php rename to src/Command/Redis/ListTrim.php index 19314180..e25e8330 100644 --- a/src/Command/ListTrim.php +++ b/src/Command/Redis/ListTrim.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/ltrim diff --git a/src/Command/PubSubPublish.php b/src/Command/Redis/PubSubPublish.php similarity index 88% rename from src/Command/PubSubPublish.php rename to src/Command/Redis/PubSubPublish.php index 55508f8d..3dfe77ab 100644 --- a/src/Command/PubSubPublish.php +++ b/src/Command/Redis/PubSubPublish.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/publish diff --git a/src/Command/PubSubPubsub.php b/src/Command/Redis/PubSubPubsub.php similarity index 95% rename from src/Command/PubSubPubsub.php rename to src/Command/Redis/PubSubPubsub.php index 8cf81297..64c64fe4 100644 --- a/src/Command/PubSubPubsub.php +++ b/src/Command/Redis/PubSubPubsub.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/pubsub diff --git a/src/Command/PubSubSubscribe.php b/src/Command/Redis/PubSubSubscribe.php similarity index 91% rename from src/Command/PubSubSubscribe.php rename to src/Command/Redis/PubSubSubscribe.php index e477b313..cfaa2f37 100644 --- a/src/Command/PubSubSubscribe.php +++ b/src/Command/Redis/PubSubSubscribe.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/subscribe diff --git a/src/Command/PubSubSubscribeByPattern.php b/src/Command/Redis/PubSubSubscribeByPattern.php similarity index 89% rename from src/Command/PubSubSubscribeByPattern.php rename to src/Command/Redis/PubSubSubscribeByPattern.php index 01182806..0ac9258d 100644 --- a/src/Command/PubSubSubscribeByPattern.php +++ b/src/Command/Redis/PubSubSubscribeByPattern.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/psubscribe diff --git a/src/Command/PubSubUnsubscribe.php b/src/Command/Redis/PubSubUnsubscribe.php similarity index 91% rename from src/Command/PubSubUnsubscribe.php rename to src/Command/Redis/PubSubUnsubscribe.php index d57c3ac6..4ce4e393 100644 --- a/src/Command/PubSubUnsubscribe.php +++ b/src/Command/Redis/PubSubUnsubscribe.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/unsubscribe diff --git a/src/Command/PubSubUnsubscribeByPattern.php b/src/Command/Redis/PubSubUnsubscribeByPattern.php similarity index 89% rename from src/Command/PubSubUnsubscribeByPattern.php rename to src/Command/Redis/PubSubUnsubscribeByPattern.php index 4d76508b..ca11a83d 100644 --- a/src/Command/PubSubUnsubscribeByPattern.php +++ b/src/Command/Redis/PubSubUnsubscribeByPattern.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/punsubscribe diff --git a/src/Command/ServerBackgroundRewriteAOF.php b/src/Command/Redis/ServerBackgroundRewriteAOF.php similarity index 91% rename from src/Command/ServerBackgroundRewriteAOF.php rename to src/Command/Redis/ServerBackgroundRewriteAOF.php index c66a294e..78aa0fe6 100644 --- a/src/Command/ServerBackgroundRewriteAOF.php +++ b/src/Command/Redis/ServerBackgroundRewriteAOF.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bgrewriteaof diff --git a/src/Command/ServerBackgroundSave.php b/src/Command/Redis/ServerBackgroundSave.php similarity index 91% rename from src/Command/ServerBackgroundSave.php rename to src/Command/Redis/ServerBackgroundSave.php index 4bf67ef3..2812a763 100644 --- a/src/Command/ServerBackgroundSave.php +++ b/src/Command/Redis/ServerBackgroundSave.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bgsave diff --git a/src/Command/ServerClient.php b/src/Command/Redis/ServerClient.php similarity index 96% rename from src/Command/ServerClient.php rename to src/Command/Redis/ServerClient.php index d00ebbff..3d8048c7 100644 --- a/src/Command/ServerClient.php +++ b/src/Command/Redis/ServerClient.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/client-list diff --git a/src/Command/ServerCommand.php b/src/Command/Redis/ServerCommand.php similarity index 88% rename from src/Command/ServerCommand.php rename to src/Command/Redis/ServerCommand.php index e9b3393c..04149d69 100644 --- a/src/Command/ServerCommand.php +++ b/src/Command/Redis/ServerCommand.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/command diff --git a/src/Command/ServerConfig.php b/src/Command/Redis/ServerConfig.php similarity index 94% rename from src/Command/ServerConfig.php rename to src/Command/Redis/ServerConfig.php index 81e497ae..45e9f33e 100644 --- a/src/Command/ServerConfig.php +++ b/src/Command/Redis/ServerConfig.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/config-set diff --git a/src/Command/ServerDatabaseSize.php b/src/Command/Redis/ServerDatabaseSize.php similarity index 89% rename from src/Command/ServerDatabaseSize.php rename to src/Command/Redis/ServerDatabaseSize.php index 6bc89724..98b37dfe 100644 --- a/src/Command/ServerDatabaseSize.php +++ b/src/Command/Redis/ServerDatabaseSize.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/dbsize diff --git a/src/Command/ServerEval.php b/src/Command/Redis/ServerEval.php similarity index 91% rename from src/Command/ServerEval.php rename to src/Command/Redis/ServerEval.php index f5eefd81..147d6d15 100644 --- a/src/Command/ServerEval.php +++ b/src/Command/Redis/ServerEval.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/eval diff --git a/src/Command/ServerEvalSHA.php b/src/Command/Redis/ServerEvalSHA.php similarity index 91% rename from src/Command/ServerEvalSHA.php rename to src/Command/Redis/ServerEvalSHA.php index 520a8e98..e2ec6955 100644 --- a/src/Command/ServerEvalSHA.php +++ b/src/Command/Redis/ServerEvalSHA.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/evalsha diff --git a/src/Command/ServerFlushAll.php b/src/Command/Redis/ServerFlushAll.php similarity index 89% rename from src/Command/ServerFlushAll.php rename to src/Command/Redis/ServerFlushAll.php index c35b2ad6..fe38a16c 100644 --- a/src/Command/ServerFlushAll.php +++ b/src/Command/Redis/ServerFlushAll.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/flushall diff --git a/src/Command/ServerFlushDatabase.php b/src/Command/Redis/ServerFlushDatabase.php similarity index 89% rename from src/Command/ServerFlushDatabase.php rename to src/Command/Redis/ServerFlushDatabase.php index 3da6b320..5c6046fe 100644 --- a/src/Command/ServerFlushDatabase.php +++ b/src/Command/Redis/ServerFlushDatabase.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/flushdb diff --git a/src/Command/ServerInfo.php b/src/Command/Redis/ServerInfo.php similarity index 97% rename from src/Command/ServerInfo.php rename to src/Command/Redis/ServerInfo.php index 96d6adad..75a8567c 100644 --- a/src/Command/ServerInfo.php +++ b/src/Command/Redis/ServerInfo.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/info diff --git a/src/Command/ServerInfoV26x.php b/src/Command/Redis/ServerInfoV26x.php similarity index 95% rename from src/Command/ServerInfoV26x.php rename to src/Command/Redis/ServerInfoV26x.php index 90c9b716..72deb10d 100644 --- a/src/Command/ServerInfoV26x.php +++ b/src/Command/Redis/ServerInfoV26x.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/info diff --git a/src/Command/ServerLastSave.php b/src/Command/Redis/ServerLastSave.php similarity index 89% rename from src/Command/ServerLastSave.php rename to src/Command/Redis/ServerLastSave.php index feeb19a8..aaf54bc4 100644 --- a/src/Command/ServerLastSave.php +++ b/src/Command/Redis/ServerLastSave.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/lastsave diff --git a/src/Command/ServerMonitor.php b/src/Command/Redis/ServerMonitor.php similarity index 88% rename from src/Command/ServerMonitor.php rename to src/Command/Redis/ServerMonitor.php index 1c3d3309..9224daa1 100644 --- a/src/Command/ServerMonitor.php +++ b/src/Command/Redis/ServerMonitor.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/monitor diff --git a/src/Command/ServerObject.php b/src/Command/Redis/ServerObject.php similarity index 88% rename from src/Command/ServerObject.php rename to src/Command/Redis/ServerObject.php index f921701c..2ca12786 100644 --- a/src/Command/ServerObject.php +++ b/src/Command/Redis/ServerObject.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/object diff --git a/src/Command/ServerSave.php b/src/Command/Redis/ServerSave.php similarity index 88% rename from src/Command/ServerSave.php rename to src/Command/Redis/ServerSave.php index addefe20..15730478 100644 --- a/src/Command/ServerSave.php +++ b/src/Command/Redis/ServerSave.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/save diff --git a/src/Command/ServerScript.php b/src/Command/Redis/ServerScript.php similarity index 88% rename from src/Command/ServerScript.php rename to src/Command/Redis/ServerScript.php index 7a01018d..21a208f2 100644 --- a/src/Command/ServerScript.php +++ b/src/Command/Redis/ServerScript.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/script diff --git a/src/Command/ServerSentinel.php b/src/Command/Redis/ServerSentinel.php similarity index 95% rename from src/Command/ServerSentinel.php rename to src/Command/Redis/ServerSentinel.php index c0962db3..1a7fc3ce 100644 --- a/src/Command/ServerSentinel.php +++ b/src/Command/Redis/ServerSentinel.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/topics/sentinel diff --git a/src/Command/ServerShutdown.php b/src/Command/Redis/ServerShutdown.php similarity index 89% rename from src/Command/ServerShutdown.php rename to src/Command/Redis/ServerShutdown.php index f5b745a2..397748ea 100644 --- a/src/Command/ServerShutdown.php +++ b/src/Command/Redis/ServerShutdown.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/shutdown diff --git a/src/Command/ServerSlaveOf.php b/src/Command/Redis/ServerSlaveOf.php similarity index 92% rename from src/Command/ServerSlaveOf.php rename to src/Command/Redis/ServerSlaveOf.php index 4ff44556..f07b0d97 100644 --- a/src/Command/ServerSlaveOf.php +++ b/src/Command/Redis/ServerSlaveOf.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/slaveof diff --git a/src/Command/ServerSlowlog.php b/src/Command/Redis/ServerSlowlog.php similarity index 94% rename from src/Command/ServerSlowlog.php rename to src/Command/Redis/ServerSlowlog.php index 137ff59e..3271d846 100644 --- a/src/Command/ServerSlowlog.php +++ b/src/Command/Redis/ServerSlowlog.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/slowlog diff --git a/src/Command/ServerTime.php b/src/Command/Redis/ServerTime.php similarity index 88% rename from src/Command/ServerTime.php rename to src/Command/Redis/ServerTime.php index 589f92c5..93a3242c 100644 --- a/src/Command/ServerTime.php +++ b/src/Command/Redis/ServerTime.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/time diff --git a/src/Command/SetAdd.php b/src/Command/Redis/SetAdd.php similarity index 91% rename from src/Command/SetAdd.php rename to src/Command/Redis/SetAdd.php index c1188181..0cd453e5 100644 --- a/src/Command/SetAdd.php +++ b/src/Command/Redis/SetAdd.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sadd diff --git a/src/Command/SetCardinality.php b/src/Command/Redis/SetCardinality.php similarity index 88% rename from src/Command/SetCardinality.php rename to src/Command/Redis/SetCardinality.php index a9f959b7..9fc32f87 100644 --- a/src/Command/SetCardinality.php +++ b/src/Command/Redis/SetCardinality.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/scard diff --git a/src/Command/SetDifference.php b/src/Command/Redis/SetDifference.php similarity index 89% rename from src/Command/SetDifference.php rename to src/Command/Redis/SetDifference.php index 35f23f98..9813b962 100644 --- a/src/Command/SetDifference.php +++ b/src/Command/Redis/SetDifference.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sdiff diff --git a/src/Command/SetDifferenceStore.php b/src/Command/Redis/SetDifferenceStore.php similarity index 89% rename from src/Command/SetDifferenceStore.php rename to src/Command/Redis/SetDifferenceStore.php index 0cb78155..1ad27ef2 100644 --- a/src/Command/SetDifferenceStore.php +++ b/src/Command/Redis/SetDifferenceStore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sdiffstore diff --git a/src/Command/SetIntersection.php b/src/Command/Redis/SetIntersection.php similarity index 91% rename from src/Command/SetIntersection.php rename to src/Command/Redis/SetIntersection.php index d18258fd..f29f472f 100644 --- a/src/Command/SetIntersection.php +++ b/src/Command/Redis/SetIntersection.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sinter diff --git a/src/Command/SetIntersectionStore.php b/src/Command/Redis/SetIntersectionStore.php similarity index 92% rename from src/Command/SetIntersectionStore.php rename to src/Command/Redis/SetIntersectionStore.php index b748618a..dfa5c07e 100644 --- a/src/Command/SetIntersectionStore.php +++ b/src/Command/Redis/SetIntersectionStore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sinterstore diff --git a/src/Command/SetIsMember.php b/src/Command/Redis/SetIsMember.php similarity index 88% rename from src/Command/SetIsMember.php rename to src/Command/Redis/SetIsMember.php index 77425224..21a6b51c 100644 --- a/src/Command/SetIsMember.php +++ b/src/Command/Redis/SetIsMember.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sismember diff --git a/src/Command/SetMembers.php b/src/Command/Redis/SetMembers.php similarity index 88% rename from src/Command/SetMembers.php rename to src/Command/Redis/SetMembers.php index f4076ae8..a9496d30 100644 --- a/src/Command/SetMembers.php +++ b/src/Command/Redis/SetMembers.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/smembers diff --git a/src/Command/SetMove.php b/src/Command/Redis/SetMove.php similarity index 88% rename from src/Command/SetMove.php rename to src/Command/Redis/SetMove.php index edd4e515..53bebde2 100644 --- a/src/Command/SetMove.php +++ b/src/Command/Redis/SetMove.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/smove diff --git a/src/Command/SetPop.php b/src/Command/Redis/SetPop.php similarity index 88% rename from src/Command/SetPop.php rename to src/Command/Redis/SetPop.php index b78d3f33..9ec3b3dc 100644 --- a/src/Command/SetPop.php +++ b/src/Command/Redis/SetPop.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/spop diff --git a/src/Command/SetRandomMember.php b/src/Command/Redis/SetRandomMember.php similarity index 89% rename from src/Command/SetRandomMember.php rename to src/Command/Redis/SetRandomMember.php index 2cb79a04..c7beed4e 100644 --- a/src/Command/SetRandomMember.php +++ b/src/Command/Redis/SetRandomMember.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/srandmember diff --git a/src/Command/SetRemove.php b/src/Command/Redis/SetRemove.php similarity index 91% rename from src/Command/SetRemove.php rename to src/Command/Redis/SetRemove.php index b34710c6..5c7cf29e 100644 --- a/src/Command/SetRemove.php +++ b/src/Command/Redis/SetRemove.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/srem diff --git a/src/Command/SetScan.php b/src/Command/Redis/SetScan.php similarity index 95% rename from src/Command/SetScan.php rename to src/Command/Redis/SetScan.php index d42b28df..c9b7f742 100644 --- a/src/Command/SetScan.php +++ b/src/Command/Redis/SetScan.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sscan diff --git a/src/Command/SetUnion.php b/src/Command/Redis/SetUnion.php similarity index 88% rename from src/Command/SetUnion.php rename to src/Command/Redis/SetUnion.php index 7da842b4..6d2d883a 100644 --- a/src/Command/SetUnion.php +++ b/src/Command/Redis/SetUnion.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sunion diff --git a/src/Command/SetUnionStore.php b/src/Command/Redis/SetUnionStore.php similarity index 89% rename from src/Command/SetUnionStore.php rename to src/Command/Redis/SetUnionStore.php index eac821ad..71316bd1 100644 --- a/src/Command/SetUnionStore.php +++ b/src/Command/Redis/SetUnionStore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/sunionstore diff --git a/src/Command/StringAppend.php b/src/Command/Redis/StringAppend.php similarity index 88% rename from src/Command/StringAppend.php rename to src/Command/Redis/StringAppend.php index dac8b847..9308f53c 100644 --- a/src/Command/StringAppend.php +++ b/src/Command/Redis/StringAppend.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/append diff --git a/src/Command/StringBitCount.php b/src/Command/Redis/StringBitCount.php similarity index 89% rename from src/Command/StringBitCount.php rename to src/Command/Redis/StringBitCount.php index 193cce91..58f15548 100644 --- a/src/Command/StringBitCount.php +++ b/src/Command/Redis/StringBitCount.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bitcount diff --git a/src/Command/StringBitField.php b/src/Command/Redis/StringBitField.php similarity index 89% rename from src/Command/StringBitField.php rename to src/Command/Redis/StringBitField.php index 9f4deaa6..e5336983 100644 --- a/src/Command/StringBitField.php +++ b/src/Command/Redis/StringBitField.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bitfield diff --git a/src/Command/StringBitOp.php b/src/Command/Redis/StringBitOp.php similarity index 93% rename from src/Command/StringBitOp.php rename to src/Command/Redis/StringBitOp.php index e04ee79c..daeab32f 100644 --- a/src/Command/StringBitOp.php +++ b/src/Command/Redis/StringBitOp.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bitop diff --git a/src/Command/StringBitPos.php b/src/Command/Redis/StringBitPos.php similarity index 88% rename from src/Command/StringBitPos.php rename to src/Command/Redis/StringBitPos.php index 42957665..43e57e60 100644 --- a/src/Command/StringBitPos.php +++ b/src/Command/Redis/StringBitPos.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/bitpos diff --git a/src/Command/StringDecrement.php b/src/Command/Redis/StringDecrement.php similarity index 88% rename from src/Command/StringDecrement.php rename to src/Command/Redis/StringDecrement.php index aa5808cd..8a587a91 100644 --- a/src/Command/StringDecrement.php +++ b/src/Command/Redis/StringDecrement.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/decr diff --git a/src/Command/StringDecrementBy.php b/src/Command/Redis/StringDecrementBy.php similarity index 88% rename from src/Command/StringDecrementBy.php rename to src/Command/Redis/StringDecrementBy.php index cbf3e112..3c0b7bff 100644 --- a/src/Command/StringDecrementBy.php +++ b/src/Command/Redis/StringDecrementBy.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/decrby diff --git a/src/Command/StringGet.php b/src/Command/Redis/StringGet.php similarity index 88% rename from src/Command/StringGet.php rename to src/Command/Redis/StringGet.php index 138e915c..7e779795 100644 --- a/src/Command/StringGet.php +++ b/src/Command/Redis/StringGet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/get diff --git a/src/Command/StringGetBit.php b/src/Command/Redis/StringGetBit.php similarity index 88% rename from src/Command/StringGetBit.php rename to src/Command/Redis/StringGetBit.php index 3c5b4f9b..546e3430 100644 --- a/src/Command/StringGetBit.php +++ b/src/Command/Redis/StringGetBit.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/getbit diff --git a/src/Command/StringGetMultiple.php b/src/Command/Redis/StringGetMultiple.php similarity index 91% rename from src/Command/StringGetMultiple.php rename to src/Command/Redis/StringGetMultiple.php index e340f9cf..f04d4385 100644 --- a/src/Command/StringGetMultiple.php +++ b/src/Command/Redis/StringGetMultiple.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/mget diff --git a/src/Command/StringGetRange.php b/src/Command/Redis/StringGetRange.php similarity index 89% rename from src/Command/StringGetRange.php rename to src/Command/Redis/StringGetRange.php index bb10565b..89975290 100644 --- a/src/Command/StringGetRange.php +++ b/src/Command/Redis/StringGetRange.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/getrange diff --git a/src/Command/StringGetSet.php b/src/Command/Redis/StringGetSet.php similarity index 88% rename from src/Command/StringGetSet.php rename to src/Command/Redis/StringGetSet.php index b68870d4..4d4aaf34 100644 --- a/src/Command/StringGetSet.php +++ b/src/Command/Redis/StringGetSet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/getset diff --git a/src/Command/StringIncrement.php b/src/Command/Redis/StringIncrement.php similarity index 88% rename from src/Command/StringIncrement.php rename to src/Command/Redis/StringIncrement.php index fa1846e2..0bd0e504 100644 --- a/src/Command/StringIncrement.php +++ b/src/Command/Redis/StringIncrement.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/incr diff --git a/src/Command/StringIncrementBy.php b/src/Command/Redis/StringIncrementBy.php similarity index 88% rename from src/Command/StringIncrementBy.php rename to src/Command/Redis/StringIncrementBy.php index 9d8241a2..356c44aa 100644 --- a/src/Command/StringIncrementBy.php +++ b/src/Command/Redis/StringIncrementBy.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/incrby diff --git a/src/Command/StringIncrementByFloat.php b/src/Command/Redis/StringIncrementByFloat.php similarity index 89% rename from src/Command/StringIncrementByFloat.php rename to src/Command/Redis/StringIncrementByFloat.php index 164a0869..6b5362f4 100644 --- a/src/Command/StringIncrementByFloat.php +++ b/src/Command/Redis/StringIncrementByFloat.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/incrbyfloat diff --git a/src/Command/StringPreciseSetExpire.php b/src/Command/Redis/StringPreciseSetExpire.php similarity index 89% rename from src/Command/StringPreciseSetExpire.php rename to src/Command/Redis/StringPreciseSetExpire.php index 2faa954d..ea6365aa 100644 --- a/src/Command/StringPreciseSetExpire.php +++ b/src/Command/Redis/StringPreciseSetExpire.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/psetex diff --git a/src/Command/StringSet.php b/src/Command/Redis/StringSet.php similarity index 88% rename from src/Command/StringSet.php rename to src/Command/Redis/StringSet.php index b1469945..d443009a 100644 --- a/src/Command/StringSet.php +++ b/src/Command/Redis/StringSet.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/set diff --git a/src/Command/StringSetBit.php b/src/Command/Redis/StringSetBit.php similarity index 88% rename from src/Command/StringSetBit.php rename to src/Command/Redis/StringSetBit.php index 7933b6be..d0004b95 100644 --- a/src/Command/StringSetBit.php +++ b/src/Command/Redis/StringSetBit.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/setbit diff --git a/src/Command/StringSetExpire.php b/src/Command/Redis/StringSetExpire.php similarity index 88% rename from src/Command/StringSetExpire.php rename to src/Command/Redis/StringSetExpire.php index f0881708..8dd6c2f6 100644 --- a/src/Command/StringSetExpire.php +++ b/src/Command/Redis/StringSetExpire.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/setex diff --git a/src/Command/StringSetMultiple.php b/src/Command/Redis/StringSetMultiple.php similarity index 93% rename from src/Command/StringSetMultiple.php rename to src/Command/Redis/StringSetMultiple.php index a3c5324d..89251e61 100644 --- a/src/Command/StringSetMultiple.php +++ b/src/Command/Redis/StringSetMultiple.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/mset diff --git a/src/Command/StringSetMultiplePreserve.php b/src/Command/Redis/StringSetMultiplePreserve.php similarity index 89% rename from src/Command/StringSetMultiplePreserve.php rename to src/Command/Redis/StringSetMultiplePreserve.php index b46a88c3..a123f68e 100644 --- a/src/Command/StringSetMultiplePreserve.php +++ b/src/Command/Redis/StringSetMultiplePreserve.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/msetnx diff --git a/src/Command/StringSetPreserve.php b/src/Command/Redis/StringSetPreserve.php similarity index 88% rename from src/Command/StringSetPreserve.php rename to src/Command/Redis/StringSetPreserve.php index e89c9749..768fbd70 100644 --- a/src/Command/StringSetPreserve.php +++ b/src/Command/Redis/StringSetPreserve.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/setnx diff --git a/src/Command/StringSetRange.php b/src/Command/Redis/StringSetRange.php similarity index 89% rename from src/Command/StringSetRange.php rename to src/Command/Redis/StringSetRange.php index 4d9389f4..57953717 100644 --- a/src/Command/StringSetRange.php +++ b/src/Command/Redis/StringSetRange.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/setrange diff --git a/src/Command/StringStrlen.php b/src/Command/Redis/StringStrlen.php similarity index 88% rename from src/Command/StringStrlen.php rename to src/Command/Redis/StringStrlen.php index 10f492fd..333d93c6 100644 --- a/src/Command/StringStrlen.php +++ b/src/Command/Redis/StringStrlen.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/strlen diff --git a/src/Command/StringSubstr.php b/src/Command/Redis/StringSubstr.php similarity index 88% rename from src/Command/StringSubstr.php rename to src/Command/Redis/StringSubstr.php index 3aab7ade..c5ae9a70 100644 --- a/src/Command/StringSubstr.php +++ b/src/Command/Redis/StringSubstr.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/substr diff --git a/src/Command/TransactionDiscard.php b/src/Command/Redis/TransactionDiscard.php similarity index 89% rename from src/Command/TransactionDiscard.php rename to src/Command/Redis/TransactionDiscard.php index 44aca2b1..1c71a9fb 100644 --- a/src/Command/TransactionDiscard.php +++ b/src/Command/Redis/TransactionDiscard.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/discard diff --git a/src/Command/TransactionExec.php b/src/Command/Redis/TransactionExec.php similarity index 88% rename from src/Command/TransactionExec.php rename to src/Command/Redis/TransactionExec.php index dbd81aae..15c28b83 100644 --- a/src/Command/TransactionExec.php +++ b/src/Command/Redis/TransactionExec.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/exec diff --git a/src/Command/TransactionMulti.php b/src/Command/Redis/TransactionMulti.php similarity index 88% rename from src/Command/TransactionMulti.php rename to src/Command/Redis/TransactionMulti.php index 673bf55d..27341c07 100644 --- a/src/Command/TransactionMulti.php +++ b/src/Command/Redis/TransactionMulti.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/multi diff --git a/src/Command/TransactionUnwatch.php b/src/Command/Redis/TransactionUnwatch.php similarity index 89% rename from src/Command/TransactionUnwatch.php rename to src/Command/Redis/TransactionUnwatch.php index 79255544..1d040202 100644 --- a/src/Command/TransactionUnwatch.php +++ b/src/Command/Redis/TransactionUnwatch.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/unwatch diff --git a/src/Command/TransactionWatch.php b/src/Command/Redis/TransactionWatch.php similarity index 92% rename from src/Command/TransactionWatch.php rename to src/Command/Redis/TransactionWatch.php index d3607801..63e0bfae 100644 --- a/src/Command/TransactionWatch.php +++ b/src/Command/Redis/TransactionWatch.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/watch diff --git a/src/Command/ZSetAdd.php b/src/Command/Redis/ZSetAdd.php similarity index 93% rename from src/Command/ZSetAdd.php rename to src/Command/Redis/ZSetAdd.php index 55e4729e..be46e9b3 100644 --- a/src/Command/ZSetAdd.php +++ b/src/Command/Redis/ZSetAdd.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zadd diff --git a/src/Command/ZSetCardinality.php b/src/Command/Redis/ZSetCardinality.php similarity index 88% rename from src/Command/ZSetCardinality.php rename to src/Command/Redis/ZSetCardinality.php index 10332009..e3f229d2 100644 --- a/src/Command/ZSetCardinality.php +++ b/src/Command/Redis/ZSetCardinality.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zcard diff --git a/src/Command/ZSetCount.php b/src/Command/Redis/ZSetCount.php similarity index 88% rename from src/Command/ZSetCount.php rename to src/Command/Redis/ZSetCount.php index 918bd2b8..626bde60 100644 --- a/src/Command/ZSetCount.php +++ b/src/Command/Redis/ZSetCount.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zcount diff --git a/src/Command/ZSetIncrementBy.php b/src/Command/Redis/ZSetIncrementBy.php similarity index 88% rename from src/Command/ZSetIncrementBy.php rename to src/Command/Redis/ZSetIncrementBy.php index 245a8e0f..83221f96 100644 --- a/src/Command/ZSetIncrementBy.php +++ b/src/Command/Redis/ZSetIncrementBy.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zincrby diff --git a/src/Command/ZSetIntersectionStore.php b/src/Command/Redis/ZSetIntersectionStore.php similarity index 89% rename from src/Command/ZSetIntersectionStore.php rename to src/Command/Redis/ZSetIntersectionStore.php index 572a7a32..204dcd56 100644 --- a/src/Command/ZSetIntersectionStore.php +++ b/src/Command/Redis/ZSetIntersectionStore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zinterstore diff --git a/src/Command/ZSetLexCount.php b/src/Command/Redis/ZSetLexCount.php similarity index 89% rename from src/Command/ZSetLexCount.php rename to src/Command/Redis/ZSetLexCount.php index 447b8eb3..90f68b6c 100644 --- a/src/Command/ZSetLexCount.php +++ b/src/Command/Redis/ZSetLexCount.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zlexcount diff --git a/src/Command/ZSetRange.php b/src/Command/Redis/ZSetRange.php similarity index 97% rename from src/Command/ZSetRange.php rename to src/Command/Redis/ZSetRange.php index ce72c7c0..bf289b04 100644 --- a/src/Command/ZSetRange.php +++ b/src/Command/Redis/ZSetRange.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrange diff --git a/src/Command/ZSetRangeByLex.php b/src/Command/Redis/ZSetRangeByLex.php similarity index 95% rename from src/Command/ZSetRangeByLex.php rename to src/Command/Redis/ZSetRangeByLex.php index 9b2991a8..9c12b2c9 100644 --- a/src/Command/ZSetRangeByLex.php +++ b/src/Command/Redis/ZSetRangeByLex.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrangebylex diff --git a/src/Command/ZSetRangeByScore.php b/src/Command/Redis/ZSetRangeByScore.php similarity index 96% rename from src/Command/ZSetRangeByScore.php rename to src/Command/Redis/ZSetRangeByScore.php index 961a5bc2..0db76b7b 100644 --- a/src/Command/ZSetRangeByScore.php +++ b/src/Command/Redis/ZSetRangeByScore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrangebyscore diff --git a/src/Command/ZSetRank.php b/src/Command/Redis/ZSetRank.php similarity index 88% rename from src/Command/ZSetRank.php rename to src/Command/Redis/ZSetRank.php index d0c9c536..deb3538a 100644 --- a/src/Command/ZSetRank.php +++ b/src/Command/Redis/ZSetRank.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrank diff --git a/src/Command/ZSetRemove.php b/src/Command/Redis/ZSetRemove.php similarity index 91% rename from src/Command/ZSetRemove.php rename to src/Command/Redis/ZSetRemove.php index cd8ada05..313aa685 100644 --- a/src/Command/ZSetRemove.php +++ b/src/Command/Redis/ZSetRemove.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrem diff --git a/src/Command/ZSetRemoveRangeByLex.php b/src/Command/Redis/ZSetRemoveRangeByLex.php similarity index 89% rename from src/Command/ZSetRemoveRangeByLex.php rename to src/Command/Redis/ZSetRemoveRangeByLex.php index 9ea2d9e5..5b51a939 100644 --- a/src/Command/ZSetRemoveRangeByLex.php +++ b/src/Command/Redis/ZSetRemoveRangeByLex.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zremrangebylex diff --git a/src/Command/ZSetRemoveRangeByRank.php b/src/Command/Redis/ZSetRemoveRangeByRank.php similarity index 89% rename from src/Command/ZSetRemoveRangeByRank.php rename to src/Command/Redis/ZSetRemoveRangeByRank.php index 89cd5baf..da17b7a5 100644 --- a/src/Command/ZSetRemoveRangeByRank.php +++ b/src/Command/Redis/ZSetRemoveRangeByRank.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zremrangebyrank diff --git a/src/Command/ZSetRemoveRangeByScore.php b/src/Command/Redis/ZSetRemoveRangeByScore.php similarity index 89% rename from src/Command/ZSetRemoveRangeByScore.php rename to src/Command/Redis/ZSetRemoveRangeByScore.php index a7c30814..fb259f86 100644 --- a/src/Command/ZSetRemoveRangeByScore.php +++ b/src/Command/Redis/ZSetRemoveRangeByScore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zremrangebyscore diff --git a/src/Command/ZSetReverseRange.php b/src/Command/Redis/ZSetReverseRange.php similarity index 89% rename from src/Command/ZSetReverseRange.php rename to src/Command/Redis/ZSetReverseRange.php index 6a46a7a5..735be26b 100644 --- a/src/Command/ZSetReverseRange.php +++ b/src/Command/Redis/ZSetReverseRange.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrevrange diff --git a/src/Command/ZSetReverseRangeByLex.php b/src/Command/Redis/ZSetReverseRangeByLex.php similarity index 89% rename from src/Command/ZSetReverseRangeByLex.php rename to src/Command/Redis/ZSetReverseRangeByLex.php index 5dd611d9..88de4abf 100644 --- a/src/Command/ZSetReverseRangeByLex.php +++ b/src/Command/Redis/ZSetReverseRangeByLex.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrevrangebylex diff --git a/src/Command/ZSetReverseRangeByScore.php b/src/Command/Redis/ZSetReverseRangeByScore.php similarity index 89% rename from src/Command/ZSetReverseRangeByScore.php rename to src/Command/Redis/ZSetReverseRangeByScore.php index 1078eb72..f9723a79 100644 --- a/src/Command/ZSetReverseRangeByScore.php +++ b/src/Command/Redis/ZSetReverseRangeByScore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrevrangebyscore diff --git a/src/Command/ZSetReverseRank.php b/src/Command/Redis/ZSetReverseRank.php similarity index 89% rename from src/Command/ZSetReverseRank.php rename to src/Command/Redis/ZSetReverseRank.php index 33fb8158..ae5887e9 100644 --- a/src/Command/ZSetReverseRank.php +++ b/src/Command/Redis/ZSetReverseRank.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zrevrank diff --git a/src/Command/ZSetScan.php b/src/Command/Redis/ZSetScan.php similarity index 96% rename from src/Command/ZSetScan.php rename to src/Command/Redis/ZSetScan.php index 1dc2352e..21730304 100644 --- a/src/Command/ZSetScan.php +++ b/src/Command/Redis/ZSetScan.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zscan diff --git a/src/Command/ZSetScore.php b/src/Command/Redis/ZSetScore.php similarity index 88% rename from src/Command/ZSetScore.php rename to src/Command/Redis/ZSetScore.php index 2e7fce8e..73212d77 100644 --- a/src/Command/ZSetScore.php +++ b/src/Command/Redis/ZSetScore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zscore diff --git a/src/Command/ZSetUnionStore.php b/src/Command/Redis/ZSetUnionStore.php similarity index 96% rename from src/Command/ZSetUnionStore.php rename to src/Command/Redis/ZSetUnionStore.php index befc5ce7..f951a70a 100644 --- a/src/Command/ZSetUnionStore.php +++ b/src/Command/Redis/ZSetUnionStore.php @@ -9,7 +9,9 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; + +use Predis\Command\Command; /** * @link http://redis.io/commands/zunionstore diff --git a/src/Command/ScriptCommand.php b/src/Command/ScriptCommand.php index a30bc1d2..49402ae6 100644 --- a/src/Command/ScriptCommand.php +++ b/src/Command/ScriptCommand.php @@ -11,6 +11,8 @@ namespace Predis\Command; +use Predis\Command\Redis\ServerEvalSHA; + /** * Base class used to implement an higher level abstraction for commands based * on Lua scripting with EVAL and EVALSHA. diff --git a/src/Profile/RedisVersion200.php b/src/Profile/RedisVersion200.php index 234d53c0..ffece2a2 100644 --- a/src/Profile/RedisVersion200.php +++ b/src/Profile/RedisVersion200.php @@ -35,139 +35,139 @@ class RedisVersion200 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfo', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfo', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', ); } } diff --git a/src/Profile/RedisVersion220.php b/src/Profile/RedisVersion220.php index 899014e2..c734871c 100644 --- a/src/Profile/RedisVersion220.php +++ b/src/Profile/RedisVersion220.php @@ -35,168 +35,168 @@ class RedisVersion220 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfo', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfo', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', ); } } diff --git a/src/Profile/RedisVersion240.php b/src/Profile/RedisVersion240.php index 0856c37c..6fd21495 100644 --- a/src/Profile/RedisVersion240.php +++ b/src/Profile/RedisVersion240.php @@ -35,173 +35,173 @@ class RedisVersion240 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfo', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfo', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', /* ---------------- Redis 2.4 ---------------- */ /* remote server control commands */ - 'CLIENT' => 'Predis\Command\ServerClient', + 'CLIENT' => 'Predis\Command\Redis\ServerClient', ); } } diff --git a/src/Profile/RedisVersion260.php b/src/Profile/RedisVersion260.php index ba5084aa..c5fc390a 100644 --- a/src/Profile/RedisVersion260.php +++ b/src/Profile/RedisVersion260.php @@ -35,201 +35,201 @@ class RedisVersion260 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', - 'DUMP' => 'Predis\Command\KeyDump', - 'RESTORE' => 'Predis\Command\KeyRestore', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', + 'DUMP' => 'Predis\Command\Redis\KeyDump', + 'RESTORE' => 'Predis\Command\Redis\KeyRestore', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfoV26x', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfoV26x', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', /* ---------------- Redis 2.4 ---------------- */ /* remote server control commands */ - 'CLIENT' => 'Predis\Command\ServerClient', + 'CLIENT' => 'Predis\Command\Redis\ServerClient', /* ---------------- Redis 2.6 ---------------- */ /* commands operating on the key space */ - 'PTTL' => 'Predis\Command\KeyPreciseTimeToLive', - 'PEXPIRE' => 'Predis\Command\KeyPreciseExpire', - 'PEXPIREAT' => 'Predis\Command\KeyPreciseExpireAt', - 'MIGRATE' => 'Predis\Command\KeyMigrate', + 'PTTL' => 'Predis\Command\Redis\KeyPreciseTimeToLive', + 'PEXPIRE' => 'Predis\Command\Redis\KeyPreciseExpire', + 'PEXPIREAT' => 'Predis\Command\Redis\KeyPreciseExpireAt', + 'MIGRATE' => 'Predis\Command\Redis\KeyMigrate', /* commands operating on string values */ - 'PSETEX' => 'Predis\Command\StringPreciseSetExpire', - 'INCRBYFLOAT' => 'Predis\Command\StringIncrementByFloat', - 'BITOP' => 'Predis\Command\StringBitOp', - 'BITCOUNT' => 'Predis\Command\StringBitCount', + 'PSETEX' => 'Predis\Command\Redis\StringPreciseSetExpire', + 'INCRBYFLOAT' => 'Predis\Command\Redis\StringIncrementByFloat', + 'BITOP' => 'Predis\Command\Redis\StringBitOp', + 'BITCOUNT' => 'Predis\Command\Redis\StringBitCount', /* commands operating on hashes */ - 'HINCRBYFLOAT' => 'Predis\Command\HashIncrementByFloat', + 'HINCRBYFLOAT' => 'Predis\Command\Redis\HashIncrementByFloat', /* scripting */ - 'EVAL' => 'Predis\Command\ServerEval', - 'EVALSHA' => 'Predis\Command\ServerEvalSHA', - 'SCRIPT' => 'Predis\Command\ServerScript', + 'EVAL' => 'Predis\Command\Redis\ServerEval', + 'EVALSHA' => 'Predis\Command\Redis\ServerEvalSHA', + 'SCRIPT' => 'Predis\Command\Redis\ServerScript', /* remote server control commands */ - 'TIME' => 'Predis\Command\ServerTime', - 'SENTINEL' => 'Predis\Command\ServerSentinel', + 'TIME' => 'Predis\Command\Redis\ServerTime', + 'SENTINEL' => 'Predis\Command\Redis\ServerSentinel', ); } } diff --git a/src/Profile/RedisVersion280.php b/src/Profile/RedisVersion280.php index ea17e682..c4062c25 100644 --- a/src/Profile/RedisVersion280.php +++ b/src/Profile/RedisVersion280.php @@ -35,233 +35,233 @@ class RedisVersion280 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', - 'DUMP' => 'Predis\Command\KeyDump', - 'RESTORE' => 'Predis\Command\KeyRestore', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', + 'DUMP' => 'Predis\Command\Redis\KeyDump', + 'RESTORE' => 'Predis\Command\Redis\KeyRestore', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfoV26x', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfoV26x', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', /* ---------------- Redis 2.4 ---------------- */ /* remote server control commands */ - 'CLIENT' => 'Predis\Command\ServerClient', + 'CLIENT' => 'Predis\Command\Redis\ServerClient', /* ---------------- Redis 2.6 ---------------- */ /* commands operating on the key space */ - 'PTTL' => 'Predis\Command\KeyPreciseTimeToLive', - 'PEXPIRE' => 'Predis\Command\KeyPreciseExpire', - 'PEXPIREAT' => 'Predis\Command\KeyPreciseExpireAt', - 'MIGRATE' => 'Predis\Command\KeyMigrate', + 'PTTL' => 'Predis\Command\Redis\KeyPreciseTimeToLive', + 'PEXPIRE' => 'Predis\Command\Redis\KeyPreciseExpire', + 'PEXPIREAT' => 'Predis\Command\Redis\KeyPreciseExpireAt', + 'MIGRATE' => 'Predis\Command\Redis\KeyMigrate', /* commands operating on string values */ - 'PSETEX' => 'Predis\Command\StringPreciseSetExpire', - 'INCRBYFLOAT' => 'Predis\Command\StringIncrementByFloat', - 'BITOP' => 'Predis\Command\StringBitOp', - 'BITCOUNT' => 'Predis\Command\StringBitCount', + 'PSETEX' => 'Predis\Command\Redis\StringPreciseSetExpire', + 'INCRBYFLOAT' => 'Predis\Command\Redis\StringIncrementByFloat', + 'BITOP' => 'Predis\Command\Redis\StringBitOp', + 'BITCOUNT' => 'Predis\Command\Redis\StringBitCount', /* commands operating on hashes */ - 'HINCRBYFLOAT' => 'Predis\Command\HashIncrementByFloat', + 'HINCRBYFLOAT' => 'Predis\Command\Redis\HashIncrementByFloat', /* scripting */ - 'EVAL' => 'Predis\Command\ServerEval', - 'EVALSHA' => 'Predis\Command\ServerEvalSHA', - 'SCRIPT' => 'Predis\Command\ServerScript', + 'EVAL' => 'Predis\Command\Redis\ServerEval', + 'EVALSHA' => 'Predis\Command\Redis\ServerEvalSHA', + 'SCRIPT' => 'Predis\Command\Redis\ServerScript', /* remote server control commands */ - 'TIME' => 'Predis\Command\ServerTime', - 'SENTINEL' => 'Predis\Command\ServerSentinel', + 'TIME' => 'Predis\Command\Redis\ServerTime', + 'SENTINEL' => 'Predis\Command\Redis\ServerSentinel', /* ---------------- Redis 2.8 ---------------- */ /* commands operating on the key space */ - 'SCAN' => 'Predis\Command\KeyScan', + 'SCAN' => 'Predis\Command\Redis\KeyScan', /* commands operating on string values */ - 'BITPOS' => 'Predis\Command\StringBitPos', + 'BITPOS' => 'Predis\Command\Redis\StringBitPos', /* commands operating on sets */ - 'SSCAN' => 'Predis\Command\SetScan', + 'SSCAN' => 'Predis\Command\Redis\SetScan', /* commands operating on sorted sets */ - 'ZSCAN' => 'Predis\Command\ZSetScan', - 'ZLEXCOUNT' => 'Predis\Command\ZSetLexCount', - 'ZRANGEBYLEX' => 'Predis\Command\ZSetRangeByLex', - 'ZREMRANGEBYLEX' => 'Predis\Command\ZSetRemoveRangeByLex', - 'ZREVRANGEBYLEX' => 'Predis\Command\ZSetReverseRangeByLex', + 'ZSCAN' => 'Predis\Command\Redis\ZSetScan', + 'ZLEXCOUNT' => 'Predis\Command\Redis\ZSetLexCount', + 'ZRANGEBYLEX' => 'Predis\Command\Redis\ZSetRangeByLex', + 'ZREMRANGEBYLEX' => 'Predis\Command\Redis\ZSetRemoveRangeByLex', + 'ZREVRANGEBYLEX' => 'Predis\Command\Redis\ZSetReverseRangeByLex', /* commands operating on hashes */ - 'HSCAN' => 'Predis\Command\HashScan', + 'HSCAN' => 'Predis\Command\Redis\HashScan', /* publish - subscribe */ - 'PUBSUB' => 'Predis\Command\PubSubPubsub', + 'PUBSUB' => 'Predis\Command\Redis\PubSubPubsub', /* commands operating on HyperLogLog */ - 'PFADD' => 'Predis\Command\HyperLogLogAdd', - 'PFCOUNT' => 'Predis\Command\HyperLogLogCount', - 'PFMERGE' => 'Predis\Command\HyperLogLogMerge', + 'PFADD' => 'Predis\Command\Redis\HyperLogLogAdd', + 'PFCOUNT' => 'Predis\Command\Redis\HyperLogLogCount', + 'PFMERGE' => 'Predis\Command\Redis\HyperLogLogMerge', /* remote server control commands */ - 'COMMAND' => 'Predis\Command\ServerCommand', + 'COMMAND' => 'Predis\Command\Redis\ServerCommand', ); } } diff --git a/src/Profile/RedisVersion300.php b/src/Profile/RedisVersion300.php index 8a2fac8b..a55921ec 100644 --- a/src/Profile/RedisVersion300.php +++ b/src/Profile/RedisVersion300.php @@ -35,233 +35,233 @@ class RedisVersion300 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', - 'DUMP' => 'Predis\Command\KeyDump', - 'RESTORE' => 'Predis\Command\KeyRestore', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', + 'DUMP' => 'Predis\Command\Redis\KeyDump', + 'RESTORE' => 'Predis\Command\Redis\KeyRestore', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfoV26x', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfoV26x', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', /* ---------------- Redis 2.4 ---------------- */ /* remote server control commands */ - 'CLIENT' => 'Predis\Command\ServerClient', + 'CLIENT' => 'Predis\Command\Redis\ServerClient', /* ---------------- Redis 2.6 ---------------- */ /* commands operating on the key space */ - 'PTTL' => 'Predis\Command\KeyPreciseTimeToLive', - 'PEXPIRE' => 'Predis\Command\KeyPreciseExpire', - 'PEXPIREAT' => 'Predis\Command\KeyPreciseExpireAt', - 'MIGRATE' => 'Predis\Command\KeyMigrate', + 'PTTL' => 'Predis\Command\Redis\KeyPreciseTimeToLive', + 'PEXPIRE' => 'Predis\Command\Redis\KeyPreciseExpire', + 'PEXPIREAT' => 'Predis\Command\Redis\KeyPreciseExpireAt', + 'MIGRATE' => 'Predis\Command\Redis\KeyMigrate', /* commands operating on string values */ - 'PSETEX' => 'Predis\Command\StringPreciseSetExpire', - 'INCRBYFLOAT' => 'Predis\Command\StringIncrementByFloat', - 'BITOP' => 'Predis\Command\StringBitOp', - 'BITCOUNT' => 'Predis\Command\StringBitCount', + 'PSETEX' => 'Predis\Command\Redis\StringPreciseSetExpire', + 'INCRBYFLOAT' => 'Predis\Command\Redis\StringIncrementByFloat', + 'BITOP' => 'Predis\Command\Redis\StringBitOp', + 'BITCOUNT' => 'Predis\Command\Redis\StringBitCount', /* commands operating on hashes */ - 'HINCRBYFLOAT' => 'Predis\Command\HashIncrementByFloat', + 'HINCRBYFLOAT' => 'Predis\Command\Redis\HashIncrementByFloat', /* scripting */ - 'EVAL' => 'Predis\Command\ServerEval', - 'EVALSHA' => 'Predis\Command\ServerEvalSHA', - 'SCRIPT' => 'Predis\Command\ServerScript', + 'EVAL' => 'Predis\Command\Redis\ServerEval', + 'EVALSHA' => 'Predis\Command\Redis\ServerEvalSHA', + 'SCRIPT' => 'Predis\Command\Redis\ServerScript', /* remote server control commands */ - 'TIME' => 'Predis\Command\ServerTime', - 'SENTINEL' => 'Predis\Command\ServerSentinel', + 'TIME' => 'Predis\Command\Redis\ServerTime', + 'SENTINEL' => 'Predis\Command\Redis\ServerSentinel', /* ---------------- Redis 2.8 ---------------- */ /* commands operating on the key space */ - 'SCAN' => 'Predis\Command\KeyScan', + 'SCAN' => 'Predis\Command\Redis\KeyScan', /* commands operating on string values */ - 'BITPOS' => 'Predis\Command\StringBitPos', + 'BITPOS' => 'Predis\Command\Redis\StringBitPos', /* commands operating on sets */ - 'SSCAN' => 'Predis\Command\SetScan', + 'SSCAN' => 'Predis\Command\Redis\SetScan', /* commands operating on sorted sets */ - 'ZSCAN' => 'Predis\Command\ZSetScan', - 'ZLEXCOUNT' => 'Predis\Command\ZSetLexCount', - 'ZRANGEBYLEX' => 'Predis\Command\ZSetRangeByLex', - 'ZREMRANGEBYLEX' => 'Predis\Command\ZSetRemoveRangeByLex', - 'ZREVRANGEBYLEX' => 'Predis\Command\ZSetReverseRangeByLex', + 'ZSCAN' => 'Predis\Command\Redis\ZSetScan', + 'ZLEXCOUNT' => 'Predis\Command\Redis\ZSetLexCount', + 'ZRANGEBYLEX' => 'Predis\Command\Redis\ZSetRangeByLex', + 'ZREMRANGEBYLEX' => 'Predis\Command\Redis\ZSetRemoveRangeByLex', + 'ZREVRANGEBYLEX' => 'Predis\Command\Redis\ZSetReverseRangeByLex', /* commands operating on hashes */ - 'HSCAN' => 'Predis\Command\HashScan', + 'HSCAN' => 'Predis\Command\Redis\HashScan', /* publish - subscribe */ - 'PUBSUB' => 'Predis\Command\PubSubPubsub', + 'PUBSUB' => 'Predis\Command\Redis\PubSubPubsub', /* commands operating on HyperLogLog */ - 'PFADD' => 'Predis\Command\HyperLogLogAdd', - 'PFCOUNT' => 'Predis\Command\HyperLogLogCount', - 'PFMERGE' => 'Predis\Command\HyperLogLogMerge', + 'PFADD' => 'Predis\Command\Redis\HyperLogLogAdd', + 'PFCOUNT' => 'Predis\Command\Redis\HyperLogLogCount', + 'PFMERGE' => 'Predis\Command\Redis\HyperLogLogMerge', /* remote server control commands */ - 'COMMAND' => 'Predis\Command\ServerCommand', + 'COMMAND' => 'Predis\Command\Redis\ServerCommand', /* ---------------- Redis 3.0 ---------------- */ diff --git a/src/Profile/RedisVersion320.php b/src/Profile/RedisVersion320.php index 7de79573..24bee4c2 100644 --- a/src/Profile/RedisVersion320.php +++ b/src/Profile/RedisVersion320.php @@ -35,247 +35,247 @@ class RedisVersion320 extends RedisProfile /* ---------------- Redis 1.2 ---------------- */ /* commands operating on the key space */ - 'EXISTS' => 'Predis\Command\KeyExists', - 'DEL' => 'Predis\Command\KeyDelete', - 'TYPE' => 'Predis\Command\KeyType', - 'KEYS' => 'Predis\Command\KeyKeys', - 'RANDOMKEY' => 'Predis\Command\KeyRandom', - 'RENAME' => 'Predis\Command\KeyRename', - 'RENAMENX' => 'Predis\Command\KeyRenamePreserve', - 'EXPIRE' => 'Predis\Command\KeyExpire', - 'EXPIREAT' => 'Predis\Command\KeyExpireAt', - 'TTL' => 'Predis\Command\KeyTimeToLive', - 'MOVE' => 'Predis\Command\KeyMove', - 'SORT' => 'Predis\Command\KeySort', - 'DUMP' => 'Predis\Command\KeyDump', - 'RESTORE' => 'Predis\Command\KeyRestore', + 'EXISTS' => 'Predis\Command\Redis\KeyExists', + 'DEL' => 'Predis\Command\Redis\KeyDelete', + 'TYPE' => 'Predis\Command\Redis\KeyType', + 'KEYS' => 'Predis\Command\Redis\KeyKeys', + 'RANDOMKEY' => 'Predis\Command\Redis\KeyRandom', + 'RENAME' => 'Predis\Command\Redis\KeyRename', + 'RENAMENX' => 'Predis\Command\Redis\KeyRenamePreserve', + 'EXPIRE' => 'Predis\Command\Redis\KeyExpire', + 'EXPIREAT' => 'Predis\Command\Redis\KeyExpireAt', + 'TTL' => 'Predis\Command\Redis\KeyTimeToLive', + 'MOVE' => 'Predis\Command\Redis\KeyMove', + 'SORT' => 'Predis\Command\Redis\KeySort', + 'DUMP' => 'Predis\Command\Redis\KeyDump', + 'RESTORE' => 'Predis\Command\Redis\KeyRestore', /* commands operating on string values */ - 'SET' => 'Predis\Command\StringSet', - 'SETNX' => 'Predis\Command\StringSetPreserve', - 'MSET' => 'Predis\Command\StringSetMultiple', - 'MSETNX' => 'Predis\Command\StringSetMultiplePreserve', - 'GET' => 'Predis\Command\StringGet', - 'MGET' => 'Predis\Command\StringGetMultiple', - 'GETSET' => 'Predis\Command\StringGetSet', - 'INCR' => 'Predis\Command\StringIncrement', - 'INCRBY' => 'Predis\Command\StringIncrementBy', - 'DECR' => 'Predis\Command\StringDecrement', - 'DECRBY' => 'Predis\Command\StringDecrementBy', + 'SET' => 'Predis\Command\Redis\StringSet', + 'SETNX' => 'Predis\Command\Redis\StringSetPreserve', + 'MSET' => 'Predis\Command\Redis\StringSetMultiple', + 'MSETNX' => 'Predis\Command\Redis\StringSetMultiplePreserve', + 'GET' => 'Predis\Command\Redis\StringGet', + 'MGET' => 'Predis\Command\Redis\StringGetMultiple', + 'GETSET' => 'Predis\Command\Redis\StringGetSet', + 'INCR' => 'Predis\Command\Redis\StringIncrement', + 'INCRBY' => 'Predis\Command\Redis\StringIncrementBy', + 'DECR' => 'Predis\Command\Redis\StringDecrement', + 'DECRBY' => 'Predis\Command\Redis\StringDecrementBy', /* commands operating on lists */ - 'RPUSH' => 'Predis\Command\ListPushTail', - 'LPUSH' => 'Predis\Command\ListPushHead', - 'LLEN' => 'Predis\Command\ListLength', - 'LRANGE' => 'Predis\Command\ListRange', - 'LTRIM' => 'Predis\Command\ListTrim', - 'LINDEX' => 'Predis\Command\ListIndex', - 'LSET' => 'Predis\Command\ListSet', - 'LREM' => 'Predis\Command\ListRemove', - 'LPOP' => 'Predis\Command\ListPopFirst', - 'RPOP' => 'Predis\Command\ListPopLast', - 'RPOPLPUSH' => 'Predis\Command\ListPopLastPushHead', + 'RPUSH' => 'Predis\Command\Redis\ListPushTail', + 'LPUSH' => 'Predis\Command\Redis\ListPushHead', + 'LLEN' => 'Predis\Command\Redis\ListLength', + 'LRANGE' => 'Predis\Command\Redis\ListRange', + 'LTRIM' => 'Predis\Command\Redis\ListTrim', + 'LINDEX' => 'Predis\Command\Redis\ListIndex', + 'LSET' => 'Predis\Command\Redis\ListSet', + 'LREM' => 'Predis\Command\Redis\ListRemove', + 'LPOP' => 'Predis\Command\Redis\ListPopFirst', + 'RPOP' => 'Predis\Command\Redis\ListPopLast', + 'RPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHead', /* commands operating on sets */ - 'SADD' => 'Predis\Command\SetAdd', - 'SREM' => 'Predis\Command\SetRemove', - 'SPOP' => 'Predis\Command\SetPop', - 'SMOVE' => 'Predis\Command\SetMove', - 'SCARD' => 'Predis\Command\SetCardinality', - 'SISMEMBER' => 'Predis\Command\SetIsMember', - 'SINTER' => 'Predis\Command\SetIntersection', - 'SINTERSTORE' => 'Predis\Command\SetIntersectionStore', - 'SUNION' => 'Predis\Command\SetUnion', - 'SUNIONSTORE' => 'Predis\Command\SetUnionStore', - 'SDIFF' => 'Predis\Command\SetDifference', - 'SDIFFSTORE' => 'Predis\Command\SetDifferenceStore', - 'SMEMBERS' => 'Predis\Command\SetMembers', - 'SRANDMEMBER' => 'Predis\Command\SetRandomMember', + 'SADD' => 'Predis\Command\Redis\SetAdd', + 'SREM' => 'Predis\Command\Redis\SetRemove', + 'SPOP' => 'Predis\Command\Redis\SetPop', + 'SMOVE' => 'Predis\Command\Redis\SetMove', + 'SCARD' => 'Predis\Command\Redis\SetCardinality', + 'SISMEMBER' => 'Predis\Command\Redis\SetIsMember', + 'SINTER' => 'Predis\Command\Redis\SetIntersection', + 'SINTERSTORE' => 'Predis\Command\Redis\SetIntersectionStore', + 'SUNION' => 'Predis\Command\Redis\SetUnion', + 'SUNIONSTORE' => 'Predis\Command\Redis\SetUnionStore', + 'SDIFF' => 'Predis\Command\Redis\SetDifference', + 'SDIFFSTORE' => 'Predis\Command\Redis\SetDifferenceStore', + 'SMEMBERS' => 'Predis\Command\Redis\SetMembers', + 'SRANDMEMBER' => 'Predis\Command\Redis\SetRandomMember', /* commands operating on sorted sets */ - 'ZADD' => 'Predis\Command\ZSetAdd', - 'ZINCRBY' => 'Predis\Command\ZSetIncrementBy', - 'ZREM' => 'Predis\Command\ZSetRemove', - 'ZRANGE' => 'Predis\Command\ZSetRange', - 'ZREVRANGE' => 'Predis\Command\ZSetReverseRange', - 'ZRANGEBYSCORE' => 'Predis\Command\ZSetRangeByScore', - 'ZCARD' => 'Predis\Command\ZSetCardinality', - 'ZSCORE' => 'Predis\Command\ZSetScore', - 'ZREMRANGEBYSCORE' => 'Predis\Command\ZSetRemoveRangeByScore', + 'ZADD' => 'Predis\Command\Redis\ZSetAdd', + 'ZINCRBY' => 'Predis\Command\Redis\ZSetIncrementBy', + 'ZREM' => 'Predis\Command\Redis\ZSetRemove', + 'ZRANGE' => 'Predis\Command\Redis\ZSetRange', + 'ZREVRANGE' => 'Predis\Command\Redis\ZSetReverseRange', + 'ZRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRangeByScore', + 'ZCARD' => 'Predis\Command\Redis\ZSetCardinality', + 'ZSCORE' => 'Predis\Command\Redis\ZSetScore', + 'ZREMRANGEBYSCORE' => 'Predis\Command\Redis\ZSetRemoveRangeByScore', /* connection related commands */ - 'PING' => 'Predis\Command\ConnectionPing', - 'AUTH' => 'Predis\Command\ConnectionAuth', - 'SELECT' => 'Predis\Command\ConnectionSelect', - 'ECHO' => 'Predis\Command\ConnectionEcho', - 'QUIT' => 'Predis\Command\ConnectionQuit', + 'PING' => 'Predis\Command\Redis\ConnectionPing', + 'AUTH' => 'Predis\Command\Redis\ConnectionAuth', + 'SELECT' => 'Predis\Command\Redis\ConnectionSelect', + 'ECHO' => 'Predis\Command\Redis\ConnectionEcho', + 'QUIT' => 'Predis\Command\Redis\ConnectionQuit', /* remote server control commands */ - 'INFO' => 'Predis\Command\ServerInfoV26x', - 'SLAVEOF' => 'Predis\Command\ServerSlaveOf', - 'MONITOR' => 'Predis\Command\ServerMonitor', - 'DBSIZE' => 'Predis\Command\ServerDatabaseSize', - 'FLUSHDB' => 'Predis\Command\ServerFlushDatabase', - 'FLUSHALL' => 'Predis\Command\ServerFlushAll', - 'SAVE' => 'Predis\Command\ServerSave', - 'BGSAVE' => 'Predis\Command\ServerBackgroundSave', - 'LASTSAVE' => 'Predis\Command\ServerLastSave', - 'SHUTDOWN' => 'Predis\Command\ServerShutdown', - 'BGREWRITEAOF' => 'Predis\Command\ServerBackgroundRewriteAOF', + 'INFO' => 'Predis\Command\Redis\ServerInfoV26x', + 'SLAVEOF' => 'Predis\Command\Redis\ServerSlaveOf', + 'MONITOR' => 'Predis\Command\Redis\ServerMonitor', + 'DBSIZE' => 'Predis\Command\Redis\ServerDatabaseSize', + 'FLUSHDB' => 'Predis\Command\Redis\ServerFlushDatabase', + 'FLUSHALL' => 'Predis\Command\Redis\ServerFlushAll', + 'SAVE' => 'Predis\Command\Redis\ServerSave', + 'BGSAVE' => 'Predis\Command\Redis\ServerBackgroundSave', + 'LASTSAVE' => 'Predis\Command\Redis\ServerLastSave', + 'SHUTDOWN' => 'Predis\Command\Redis\ServerShutdown', + 'BGREWRITEAOF' => 'Predis\Command\Redis\ServerBackgroundRewriteAOF', /* ---------------- Redis 2.0 ---------------- */ /* commands operating on string values */ - 'SETEX' => 'Predis\Command\StringSetExpire', - 'APPEND' => 'Predis\Command\StringAppend', - 'SUBSTR' => 'Predis\Command\StringSubstr', + 'SETEX' => 'Predis\Command\Redis\StringSetExpire', + 'APPEND' => 'Predis\Command\Redis\StringAppend', + 'SUBSTR' => 'Predis\Command\Redis\StringSubstr', /* commands operating on lists */ - 'BLPOP' => 'Predis\Command\ListPopFirstBlocking', - 'BRPOP' => 'Predis\Command\ListPopLastBlocking', + 'BLPOP' => 'Predis\Command\Redis\ListPopFirstBlocking', + 'BRPOP' => 'Predis\Command\Redis\ListPopLastBlocking', /* commands operating on sorted sets */ - 'ZUNIONSTORE' => 'Predis\Command\ZSetUnionStore', - 'ZINTERSTORE' => 'Predis\Command\ZSetIntersectionStore', - 'ZCOUNT' => 'Predis\Command\ZSetCount', - 'ZRANK' => 'Predis\Command\ZSetRank', - 'ZREVRANK' => 'Predis\Command\ZSetReverseRank', - 'ZREMRANGEBYRANK' => 'Predis\Command\ZSetRemoveRangeByRank', + 'ZUNIONSTORE' => 'Predis\Command\Redis\ZSetUnionStore', + 'ZINTERSTORE' => 'Predis\Command\Redis\ZSetIntersectionStore', + 'ZCOUNT' => 'Predis\Command\Redis\ZSetCount', + 'ZRANK' => 'Predis\Command\Redis\ZSetRank', + 'ZREVRANK' => 'Predis\Command\Redis\ZSetReverseRank', + 'ZREMRANGEBYRANK' => 'Predis\Command\Redis\ZSetRemoveRangeByRank', /* commands operating on hashes */ - 'HSET' => 'Predis\Command\HashSet', - 'HSETNX' => 'Predis\Command\HashSetPreserve', - 'HMSET' => 'Predis\Command\HashSetMultiple', - 'HINCRBY' => 'Predis\Command\HashIncrementBy', - 'HGET' => 'Predis\Command\HashGet', - 'HMGET' => 'Predis\Command\HashGetMultiple', - 'HDEL' => 'Predis\Command\HashDelete', - 'HEXISTS' => 'Predis\Command\HashExists', - 'HLEN' => 'Predis\Command\HashLength', - 'HKEYS' => 'Predis\Command\HashKeys', - 'HVALS' => 'Predis\Command\HashValues', - 'HGETALL' => 'Predis\Command\HashGetAll', + 'HSET' => 'Predis\Command\Redis\HashSet', + 'HSETNX' => 'Predis\Command\Redis\HashSetPreserve', + 'HMSET' => 'Predis\Command\Redis\HashSetMultiple', + 'HINCRBY' => 'Predis\Command\Redis\HashIncrementBy', + 'HGET' => 'Predis\Command\Redis\HashGet', + 'HMGET' => 'Predis\Command\Redis\HashGetMultiple', + 'HDEL' => 'Predis\Command\Redis\HashDelete', + 'HEXISTS' => 'Predis\Command\Redis\HashExists', + 'HLEN' => 'Predis\Command\Redis\HashLength', + 'HKEYS' => 'Predis\Command\Redis\HashKeys', + 'HVALS' => 'Predis\Command\Redis\HashValues', + 'HGETALL' => 'Predis\Command\Redis\HashGetAll', /* transactions */ - 'MULTI' => 'Predis\Command\TransactionMulti', - 'EXEC' => 'Predis\Command\TransactionExec', - 'DISCARD' => 'Predis\Command\TransactionDiscard', + 'MULTI' => 'Predis\Command\Redis\TransactionMulti', + 'EXEC' => 'Predis\Command\Redis\TransactionExec', + 'DISCARD' => 'Predis\Command\Redis\TransactionDiscard', /* publish - subscribe */ - 'SUBSCRIBE' => 'Predis\Command\PubSubSubscribe', - 'UNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribe', - 'PSUBSCRIBE' => 'Predis\Command\PubSubSubscribeByPattern', - 'PUNSUBSCRIBE' => 'Predis\Command\PubSubUnsubscribeByPattern', - 'PUBLISH' => 'Predis\Command\PubSubPublish', + 'SUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribe', + 'UNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribe', + 'PSUBSCRIBE' => 'Predis\Command\Redis\PubSubSubscribeByPattern', + 'PUNSUBSCRIBE' => 'Predis\Command\Redis\PubSubUnsubscribeByPattern', + 'PUBLISH' => 'Predis\Command\Redis\PubSubPublish', /* remote server control commands */ - 'CONFIG' => 'Predis\Command\ServerConfig', + 'CONFIG' => 'Predis\Command\Redis\ServerConfig', /* ---------------- Redis 2.2 ---------------- */ /* commands operating on the key space */ - 'PERSIST' => 'Predis\Command\KeyPersist', + 'PERSIST' => 'Predis\Command\Redis\KeyPersist', /* commands operating on string values */ - 'STRLEN' => 'Predis\Command\StringStrlen', - 'SETRANGE' => 'Predis\Command\StringSetRange', - 'GETRANGE' => 'Predis\Command\StringGetRange', - 'SETBIT' => 'Predis\Command\StringSetBit', - 'GETBIT' => 'Predis\Command\StringGetBit', + 'STRLEN' => 'Predis\Command\Redis\StringStrlen', + 'SETRANGE' => 'Predis\Command\Redis\StringSetRange', + 'GETRANGE' => 'Predis\Command\Redis\StringGetRange', + 'SETBIT' => 'Predis\Command\Redis\StringSetBit', + 'GETBIT' => 'Predis\Command\Redis\StringGetBit', /* commands operating on lists */ - 'RPUSHX' => 'Predis\Command\ListPushTailX', - 'LPUSHX' => 'Predis\Command\ListPushHeadX', - 'LINSERT' => 'Predis\Command\ListInsert', - 'BRPOPLPUSH' => 'Predis\Command\ListPopLastPushHeadBlocking', + 'RPUSHX' => 'Predis\Command\Redis\ListPushTailX', + 'LPUSHX' => 'Predis\Command\Redis\ListPushHeadX', + 'LINSERT' => 'Predis\Command\Redis\ListInsert', + 'BRPOPLPUSH' => 'Predis\Command\Redis\ListPopLastPushHeadBlocking', /* commands operating on sorted sets */ - 'ZREVRANGEBYSCORE' => 'Predis\Command\ZSetReverseRangeByScore', + 'ZREVRANGEBYSCORE' => 'Predis\Command\Redis\ZSetReverseRangeByScore', /* transactions */ - 'WATCH' => 'Predis\Command\TransactionWatch', - 'UNWATCH' => 'Predis\Command\TransactionUnwatch', + 'WATCH' => 'Predis\Command\Redis\TransactionWatch', + 'UNWATCH' => 'Predis\Command\Redis\TransactionUnwatch', /* remote server control commands */ - 'OBJECT' => 'Predis\Command\ServerObject', - 'SLOWLOG' => 'Predis\Command\ServerSlowlog', + 'OBJECT' => 'Predis\Command\Redis\ServerObject', + 'SLOWLOG' => 'Predis\Command\Redis\ServerSlowlog', /* ---------------- Redis 2.4 ---------------- */ /* remote server control commands */ - 'CLIENT' => 'Predis\Command\ServerClient', + 'CLIENT' => 'Predis\Command\Redis\ServerClient', /* ---------------- Redis 2.6 ---------------- */ /* commands operating on the key space */ - 'PTTL' => 'Predis\Command\KeyPreciseTimeToLive', - 'PEXPIRE' => 'Predis\Command\KeyPreciseExpire', - 'PEXPIREAT' => 'Predis\Command\KeyPreciseExpireAt', - 'MIGRATE' => 'Predis\Command\KeyMigrate', + 'PTTL' => 'Predis\Command\Redis\KeyPreciseTimeToLive', + 'PEXPIRE' => 'Predis\Command\Redis\KeyPreciseExpire', + 'PEXPIREAT' => 'Predis\Command\Redis\KeyPreciseExpireAt', + 'MIGRATE' => 'Predis\Command\Redis\KeyMigrate', /* commands operating on string values */ - 'PSETEX' => 'Predis\Command\StringPreciseSetExpire', - 'INCRBYFLOAT' => 'Predis\Command\StringIncrementByFloat', - 'BITOP' => 'Predis\Command\StringBitOp', - 'BITCOUNT' => 'Predis\Command\StringBitCount', + 'PSETEX' => 'Predis\Command\Redis\StringPreciseSetExpire', + 'INCRBYFLOAT' => 'Predis\Command\Redis\StringIncrementByFloat', + 'BITOP' => 'Predis\Command\Redis\StringBitOp', + 'BITCOUNT' => 'Predis\Command\Redis\StringBitCount', /* commands operating on hashes */ - 'HINCRBYFLOAT' => 'Predis\Command\HashIncrementByFloat', + 'HINCRBYFLOAT' => 'Predis\Command\Redis\HashIncrementByFloat', /* scripting */ - 'EVAL' => 'Predis\Command\ServerEval', - 'EVALSHA' => 'Predis\Command\ServerEvalSHA', - 'SCRIPT' => 'Predis\Command\ServerScript', + 'EVAL' => 'Predis\Command\Redis\ServerEval', + 'EVALSHA' => 'Predis\Command\Redis\ServerEvalSHA', + 'SCRIPT' => 'Predis\Command\Redis\ServerScript', /* remote server control commands */ - 'TIME' => 'Predis\Command\ServerTime', - 'SENTINEL' => 'Predis\Command\ServerSentinel', + 'TIME' => 'Predis\Command\Redis\ServerTime', + 'SENTINEL' => 'Predis\Command\Redis\ServerSentinel', /* ---------------- Redis 2.8 ---------------- */ /* commands operating on the key space */ - 'SCAN' => 'Predis\Command\KeyScan', + 'SCAN' => 'Predis\Command\Redis\KeyScan', /* commands operating on string values */ - 'BITPOS' => 'Predis\Command\StringBitPos', + 'BITPOS' => 'Predis\Command\Redis\StringBitPos', /* commands operating on sets */ - 'SSCAN' => 'Predis\Command\SetScan', + 'SSCAN' => 'Predis\Command\Redis\SetScan', /* commands operating on sorted sets */ - 'ZSCAN' => 'Predis\Command\ZSetScan', - 'ZLEXCOUNT' => 'Predis\Command\ZSetLexCount', - 'ZRANGEBYLEX' => 'Predis\Command\ZSetRangeByLex', - 'ZREMRANGEBYLEX' => 'Predis\Command\ZSetRemoveRangeByLex', - 'ZREVRANGEBYLEX' => 'Predis\Command\ZSetReverseRangeByLex', + 'ZSCAN' => 'Predis\Command\Redis\ZSetScan', + 'ZLEXCOUNT' => 'Predis\Command\Redis\ZSetLexCount', + 'ZRANGEBYLEX' => 'Predis\Command\Redis\ZSetRangeByLex', + 'ZREMRANGEBYLEX' => 'Predis\Command\Redis\ZSetRemoveRangeByLex', + 'ZREVRANGEBYLEX' => 'Predis\Command\Redis\ZSetReverseRangeByLex', /* commands operating on hashes */ - 'HSCAN' => 'Predis\Command\HashScan', + 'HSCAN' => 'Predis\Command\Redis\HashScan', /* publish - subscribe */ - 'PUBSUB' => 'Predis\Command\PubSubPubsub', + 'PUBSUB' => 'Predis\Command\Redis\PubSubPubsub', /* commands operating on HyperLogLog */ - 'PFADD' => 'Predis\Command\HyperLogLogAdd', - 'PFCOUNT' => 'Predis\Command\HyperLogLogCount', - 'PFMERGE' => 'Predis\Command\HyperLogLogMerge', + 'PFADD' => 'Predis\Command\Redis\HyperLogLogAdd', + 'PFCOUNT' => 'Predis\Command\Redis\HyperLogLogCount', + 'PFMERGE' => 'Predis\Command\Redis\HyperLogLogMerge', /* remote server control commands */ - 'COMMAND' => 'Predis\Command\ServerCommand', + 'COMMAND' => 'Predis\Command\Redis\ServerCommand', /* ---------------- Redis 3.2 ---------------- */ /* commands operating on hashes */ - 'HSTRLEN' => 'Predis\Command\HashStringLength', - 'BITFIELD' => 'Predis\Command\StringBitField', + 'HSTRLEN' => 'Predis\Command\Redis\HashStringLength', + 'BITFIELD' => 'Predis\Command\Redis\StringBitField', /* commands performing geospatial operations */ - 'GEOADD' => 'Predis\Command\GeospatialGeoAdd', - 'GEOHASH' => 'Predis\Command\GeospatialGeoHash', - 'GEOPOS' => 'Predis\Command\GeospatialGeoPos', - 'GEODIST' => 'Predis\Command\GeospatialGeoDist', - 'GEORADIUS' => 'Predis\Command\GeospatialGeoRadius', - 'GEORADIUSBYMEMBER' => 'Predis\Command\GeospatialGeoRadiusByMember', + 'GEOADD' => 'Predis\Command\Redis\GeospatialGeoAdd', + 'GEOHASH' => 'Predis\Command\Redis\GeospatialGeoHash', + 'GEOPOS' => 'Predis\Command\Redis\GeospatialGeoPos', + 'GEODIST' => 'Predis\Command\Redis\GeospatialGeoDist', + 'GEORADIUS' => 'Predis\Command\Redis\GeospatialGeoRadius', + 'GEORADIUSBYMEMBER' => 'Predis\Command\Redis\GeospatialGeoRadiusByMember', ); } } diff --git a/tests/PHPUnit/PredisCommandTestCase.php b/tests/PHPUnit/PredisCommandTestCase.php index b4036279..845567e4 100644 --- a/tests/PHPUnit/PredisCommandTestCase.php +++ b/tests/PHPUnit/PredisCommandTestCase.php @@ -9,9 +9,10 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; use Predis\Client; +use Predis\Command; use Predis\Profile; use PredisTestCase; diff --git a/tests/PHPUnit/PredisProfileTestCase.php b/tests/PHPUnit/PredisProfileTestCase.php index 27b103b2..0f35fec1 100644 --- a/tests/PHPUnit/PredisProfileTestCase.php +++ b/tests/PHPUnit/PredisProfileTestCase.php @@ -127,8 +127,8 @@ abstract class PredisProfileTestCase extends PredisTestCase { $profile = $this->getProfile(); - $this->assertSame('Predis\Command\ConnectionPing', $profile->getCommandClass('ping')); - $this->assertSame('Predis\Command\ConnectionPing', $profile->getCommandClass('PING')); + $this->assertSame('Predis\Command\Redis\ConnectionPing', $profile->getCommandClass('ping')); + $this->assertSame('Predis\Command\Redis\ConnectionPing', $profile->getCommandClass('PING')); $this->assertNull($profile->getCommandClass('unknown')); $this->assertNull($profile->getCommandClass('UNKNOWN')); diff --git a/tests/Predis/ClientTest.php b/tests/Predis/ClientTest.php index 93ef909f..8b810d9c 100644 --- a/tests/Predis/ClientTest.php +++ b/tests/Predis/ClientTest.php @@ -439,7 +439,7 @@ class ClientTest extends PredisTestCase $connection = $this->getMock('Predis\Connection\ConnectionInterface'); $connection->expects($this->once()) ->method('executeCommand') - ->with($this->isInstanceOf('Predis\Command\ConnectionPing')) + ->with($this->isInstanceOf('Predis\Command\Redis\ConnectionPing')) ->will($this->returnValue('PONG')); $profile = $this->getMock('Predis\Profile\ProfileInterface'); @@ -466,7 +466,7 @@ class ClientTest extends PredisTestCase $connection = $this->getMock('Predis\Connection\ConnectionInterface'); $connection->expects($this->once()) ->method('executeCommand') - ->with($this->isInstanceOf('Predis\Command\ConnectionPing')) + ->with($this->isRedisCommand('PING')) ->will($this->returnValue($expectedResponse)); $client = new Client($connection); @@ -483,7 +483,7 @@ class ClientTest extends PredisTestCase $connection = $this->getMock('Predis\Connection\ConnectionInterface'); $connection->expects($this->once()) ->method('executeCommand') - ->with($this->isInstanceOf('Predis\Command\ConnectionPing')) + ->with($this->isRedisCommand('PING')) ->will($this->returnValue($expectedResponse)); $client = new Client($connection, array('exceptions' => false)); @@ -807,7 +807,7 @@ class ClientTest extends PredisTestCase ->will($this->returnValue(new Response\Error('NOSCRIPT'))); $connection->expects($this->at(1)) ->method('executeCommand') - ->with($this->isInstanceOf('Predis\Command\ServerEval')) + ->with($this->isRedisCommand('EVAL')) ->will($this->returnValue('OK')); $client = new Client($connection); diff --git a/tests/Predis/Command/ConnectionAuthTest.php b/tests/Predis/Command/Redis/ConnectionAuthTest.php similarity index 92% rename from tests/Predis/Command/ConnectionAuthTest.php rename to tests/Predis/Command/Redis/ConnectionAuthTest.php index 6248a32a..5a5938a3 100644 --- a/tests/Predis/Command/ConnectionAuthTest.php +++ b/tests/Predis/Command/Redis/ConnectionAuthTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ConnectionAuthTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ConnectionAuth'; + return 'Predis\Command\Redis\ConnectionAuth'; } /** diff --git a/tests/Predis/Command/ConnectionEchoTest.php b/tests/Predis/Command/Redis/ConnectionEchoTest.php similarity index 94% rename from tests/Predis/Command/ConnectionEchoTest.php rename to tests/Predis/Command/Redis/ConnectionEchoTest.php index 3d506c7a..7aa66cfc 100644 --- a/tests/Predis/Command/ConnectionEchoTest.php +++ b/tests/Predis/Command/Redis/ConnectionEchoTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ConnectionEchoTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ConnectionEcho'; + return 'Predis\Command\Redis\ConnectionEcho'; } /** diff --git a/tests/Predis/Command/ConnectionPingTest.php b/tests/Predis/Command/Redis/ConnectionPingTest.php similarity index 93% rename from tests/Predis/Command/ConnectionPingTest.php rename to tests/Predis/Command/Redis/ConnectionPingTest.php index a34c95f4..5c2eeae7 100644 --- a/tests/Predis/Command/ConnectionPingTest.php +++ b/tests/Predis/Command/Redis/ConnectionPingTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ConnectionPingTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ConnectionPing'; + return 'Predis\Command\Redis\ConnectionPing'; } /** diff --git a/tests/Predis/Command/ConnectionQuitTest.php b/tests/Predis/Command/Redis/ConnectionQuitTest.php similarity index 94% rename from tests/Predis/Command/ConnectionQuitTest.php rename to tests/Predis/Command/Redis/ConnectionQuitTest.php index a86530f3..74b2f562 100644 --- a/tests/Predis/Command/ConnectionQuitTest.php +++ b/tests/Predis/Command/Redis/ConnectionQuitTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ConnectionQuitTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ConnectionQuit'; + return 'Predis\Command\Redis\ConnectionQuit'; } /** diff --git a/tests/Predis/Command/ConnectionSelectTest.php b/tests/Predis/Command/Redis/ConnectionSelectTest.php similarity index 94% rename from tests/Predis/Command/ConnectionSelectTest.php rename to tests/Predis/Command/Redis/ConnectionSelectTest.php index 93abb45a..5fe49f97 100644 --- a/tests/Predis/Command/ConnectionSelectTest.php +++ b/tests/Predis/Command/Redis/ConnectionSelectTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ConnectionSelectTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ConnectionSelect'; + return 'Predis\Command\Redis\ConnectionSelect'; } /** diff --git a/tests/Predis/Command/GeospatialGeoAddTest.php b/tests/Predis/Command/Redis/GeospatialGeoAddTest.php similarity index 96% rename from tests/Predis/Command/GeospatialGeoAddTest.php rename to tests/Predis/Command/Redis/GeospatialGeoAddTest.php index d2be244a..3217f3b0 100644 --- a/tests/Predis/Command/GeospatialGeoAddTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoAddTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoAddTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoAdd'; + return 'Predis\Command\Redis\GeospatialGeoAdd'; } /** diff --git a/tests/Predis/Command/GeospatialGeoDistTest.php b/tests/Predis/Command/Redis/GeospatialGeoDistTest.php similarity index 95% rename from tests/Predis/Command/GeospatialGeoDistTest.php rename to tests/Predis/Command/Redis/GeospatialGeoDistTest.php index 33250a3c..3f99fde2 100644 --- a/tests/Predis/Command/GeospatialGeoDistTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoDistTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoDistTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoDist'; + return 'Predis\Command\Redis\GeospatialGeoDist'; } /** diff --git a/tests/Predis/Command/GeospatialGeoHashTest.php b/tests/Predis/Command/Redis/GeospatialGeoHashTest.php similarity index 96% rename from tests/Predis/Command/GeospatialGeoHashTest.php rename to tests/Predis/Command/Redis/GeospatialGeoHashTest.php index bd354146..a39efec1 100644 --- a/tests/Predis/Command/GeospatialGeoHashTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoHashTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoHashTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoHash'; + return 'Predis\Command\Redis\GeospatialGeoHash'; } /** diff --git a/tests/Predis/Command/GeospatialGeoPosTest.php b/tests/Predis/Command/Redis/GeospatialGeoPosTest.php similarity index 96% rename from tests/Predis/Command/GeospatialGeoPosTest.php rename to tests/Predis/Command/Redis/GeospatialGeoPosTest.php index 34e39f77..0b719a8f 100644 --- a/tests/Predis/Command/GeospatialGeoPosTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoPosTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoPosTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoPos'; + return 'Predis\Command\Redis\GeospatialGeoPos'; } /** diff --git a/tests/Predis/Command/GeospatialGeoRadiusByMemberTest.php b/tests/Predis/Command/Redis/GeospatialGeoRadiusByMemberTest.php similarity index 97% rename from tests/Predis/Command/GeospatialGeoRadiusByMemberTest.php rename to tests/Predis/Command/Redis/GeospatialGeoRadiusByMemberTest.php index f6c01d53..f39195ea 100644 --- a/tests/Predis/Command/GeospatialGeoRadiusByMemberTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoRadiusByMemberTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoRadiusByMemberTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoRadiusByMember'; + return 'Predis\Command\Redis\GeospatialGeoRadiusByMember'; } /** diff --git a/tests/Predis/Command/GeospatialGeoRadiusTest.php b/tests/Predis/Command/Redis/GeospatialGeoRadiusTest.php similarity index 98% rename from tests/Predis/Command/GeospatialGeoRadiusTest.php rename to tests/Predis/Command/Redis/GeospatialGeoRadiusTest.php index 77bede63..f1edd4f8 100644 --- a/tests/Predis/Command/GeospatialGeoRadiusTest.php +++ b/tests/Predis/Command/Redis/GeospatialGeoRadiusTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class GeospatialGeoRadiusTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\GeospatialGeoRadius'; + return 'Predis\Command\Redis\GeospatialGeoRadius'; } /** diff --git a/tests/Predis/Command/HashDeleteTest.php b/tests/Predis/Command/Redis/HashDeleteTest.php similarity index 96% rename from tests/Predis/Command/HashDeleteTest.php rename to tests/Predis/Command/Redis/HashDeleteTest.php index d3f88e61..aa77bfc1 100644 --- a/tests/Predis/Command/HashDeleteTest.php +++ b/tests/Predis/Command/Redis/HashDeleteTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashDeleteTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashDelete'; + return 'Predis\Command\Redis\HashDelete'; } /** diff --git a/tests/Predis/Command/HashExistsTest.php b/tests/Predis/Command/Redis/HashExistsTest.php similarity index 95% rename from tests/Predis/Command/HashExistsTest.php rename to tests/Predis/Command/Redis/HashExistsTest.php index faa49eb6..442e8322 100644 --- a/tests/Predis/Command/HashExistsTest.php +++ b/tests/Predis/Command/Redis/HashExistsTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashExistsTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashExists'; + return 'Predis\Command\Redis\HashExists'; } /** diff --git a/tests/Predis/Command/HashGetAllTest.php b/tests/Predis/Command/Redis/HashGetAllTest.php similarity index 96% rename from tests/Predis/Command/HashGetAllTest.php rename to tests/Predis/Command/Redis/HashGetAllTest.php index 4b127c5b..751dbf57 100644 --- a/tests/Predis/Command/HashGetAllTest.php +++ b/tests/Predis/Command/Redis/HashGetAllTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashGetAllTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashGetAll'; + return 'Predis\Command\Redis\HashGetAll'; } /** diff --git a/tests/Predis/Command/HashGetMultipleTest.php b/tests/Predis/Command/Redis/HashGetMultipleTest.php similarity index 96% rename from tests/Predis/Command/HashGetMultipleTest.php rename to tests/Predis/Command/Redis/HashGetMultipleTest.php index 0cce43e5..bd6b8823 100644 --- a/tests/Predis/Command/HashGetMultipleTest.php +++ b/tests/Predis/Command/Redis/HashGetMultipleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashGetMultipleTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashGetMultiple'; + return 'Predis\Command\Redis\HashGetMultiple'; } /** diff --git a/tests/Predis/Command/HashGetTest.php b/tests/Predis/Command/Redis/HashGetTest.php similarity index 95% rename from tests/Predis/Command/HashGetTest.php rename to tests/Predis/Command/Redis/HashGetTest.php index 37ac3822..ee0a0dde 100644 --- a/tests/Predis/Command/HashGetTest.php +++ b/tests/Predis/Command/Redis/HashGetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashGetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashGet'; + return 'Predis\Command\Redis\HashGet'; } /** diff --git a/tests/Predis/Command/HashIncrementByFloatTest.php b/tests/Predis/Command/Redis/HashIncrementByFloatTest.php similarity index 96% rename from tests/Predis/Command/HashIncrementByFloatTest.php rename to tests/Predis/Command/Redis/HashIncrementByFloatTest.php index 006bbcad..7ea2cb82 100644 --- a/tests/Predis/Command/HashIncrementByFloatTest.php +++ b/tests/Predis/Command/Redis/HashIncrementByFloatTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashIncrementByFloatTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashIncrementByFloat'; + return 'Predis\Command\Redis\HashIncrementByFloat'; } /** diff --git a/tests/Predis/Command/HashIncrementByTest.php b/tests/Predis/Command/Redis/HashIncrementByTest.php similarity index 96% rename from tests/Predis/Command/HashIncrementByTest.php rename to tests/Predis/Command/Redis/HashIncrementByTest.php index d4a418a0..311023dc 100644 --- a/tests/Predis/Command/HashIncrementByTest.php +++ b/tests/Predis/Command/Redis/HashIncrementByTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashIncrementByTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashIncrementBy'; + return 'Predis\Command\Redis\HashIncrementBy'; } /** diff --git a/tests/Predis/Command/HashKeysTest.php b/tests/Predis/Command/Redis/HashKeysTest.php similarity index 95% rename from tests/Predis/Command/HashKeysTest.php rename to tests/Predis/Command/Redis/HashKeysTest.php index 0f02ff42..ab34269f 100644 --- a/tests/Predis/Command/HashKeysTest.php +++ b/tests/Predis/Command/Redis/HashKeysTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashKeysTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashKeys'; + return 'Predis\Command\Redis\HashKeys'; } /** diff --git a/tests/Predis/Command/HashLengthTest.php b/tests/Predis/Command/Redis/HashLengthTest.php similarity index 95% rename from tests/Predis/Command/HashLengthTest.php rename to tests/Predis/Command/Redis/HashLengthTest.php index a6ba46a9..28dc8d58 100644 --- a/tests/Predis/Command/HashLengthTest.php +++ b/tests/Predis/Command/Redis/HashLengthTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashLengthTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashLength'; + return 'Predis\Command\Redis\HashLength'; } /** diff --git a/tests/Predis/Command/HashScanTest.php b/tests/Predis/Command/Redis/HashScanTest.php similarity index 97% rename from tests/Predis/Command/HashScanTest.php rename to tests/Predis/Command/Redis/HashScanTest.php index e7e3d47f..5695285d 100644 --- a/tests/Predis/Command/HashScanTest.php +++ b/tests/Predis/Command/Redis/HashScanTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashScanTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashScan'; + return 'Predis\Command\Redis\HashScan'; } /** diff --git a/tests/Predis/Command/HashSetMultipleTest.php b/tests/Predis/Command/Redis/HashSetMultipleTest.php similarity index 96% rename from tests/Predis/Command/HashSetMultipleTest.php rename to tests/Predis/Command/Redis/HashSetMultipleTest.php index 2415d82e..93f9e5d9 100644 --- a/tests/Predis/Command/HashSetMultipleTest.php +++ b/tests/Predis/Command/Redis/HashSetMultipleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashSetMultipleTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashSetMultiple'; + return 'Predis\Command\Redis\HashSetMultiple'; } /** diff --git a/tests/Predis/Command/HashSetPreserveTest.php b/tests/Predis/Command/Redis/HashSetPreserveTest.php similarity index 95% rename from tests/Predis/Command/HashSetPreserveTest.php rename to tests/Predis/Command/Redis/HashSetPreserveTest.php index f70edddd..a0e6f431 100644 --- a/tests/Predis/Command/HashSetPreserveTest.php +++ b/tests/Predis/Command/Redis/HashSetPreserveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashSetPreserveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashSetPreserve'; + return 'Predis\Command\Redis\HashSetPreserve'; } /** diff --git a/tests/Predis/Command/HashSetTest.php b/tests/Predis/Command/Redis/HashSetTest.php similarity index 96% rename from tests/Predis/Command/HashSetTest.php rename to tests/Predis/Command/Redis/HashSetTest.php index 2f2d31e9..ba8d1ea1 100644 --- a/tests/Predis/Command/HashSetTest.php +++ b/tests/Predis/Command/Redis/HashSetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashSetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashSet'; + return 'Predis\Command\Redis\HashSet'; } /** diff --git a/tests/Predis/Command/HashStringLengthTest.php b/tests/Predis/Command/Redis/HashStringLengthTest.php similarity index 96% rename from tests/Predis/Command/HashStringLengthTest.php rename to tests/Predis/Command/Redis/HashStringLengthTest.php index 231497b6..e2d8bac8 100644 --- a/tests/Predis/Command/HashStringLengthTest.php +++ b/tests/Predis/Command/Redis/HashStringLengthTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashStringLengthTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashStringLength'; + return 'Predis\Command\Redis\HashStringLength'; } /** diff --git a/tests/Predis/Command/HashValuesTest.php b/tests/Predis/Command/Redis/HashValuesTest.php similarity index 95% rename from tests/Predis/Command/HashValuesTest.php rename to tests/Predis/Command/Redis/HashValuesTest.php index 1e15d573..60332b3a 100644 --- a/tests/Predis/Command/HashValuesTest.php +++ b/tests/Predis/Command/Redis/HashValuesTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class HashValuesTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HashValues'; + return 'Predis\Command\Redis\HashValues'; } /** diff --git a/tests/Predis/Command/HyperLogLogAddTest.php b/tests/Predis/Command/Redis/HyperLogLogAddTest.php similarity index 95% rename from tests/Predis/Command/HyperLogLogAddTest.php rename to tests/Predis/Command/Redis/HyperLogLogAddTest.php index 9076a126..ae9a10f9 100644 --- a/tests/Predis/Command/HyperLogLogAddTest.php +++ b/tests/Predis/Command/Redis/HyperLogLogAddTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -24,7 +24,7 @@ class HyperLogLogAddTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HyperLogLogAdd'; + return 'Predis\Command\Redis\HyperLogLogAdd'; } /** diff --git a/tests/Predis/Command/HyperLogLogCountTest.php b/tests/Predis/Command/Redis/HyperLogLogCountTest.php similarity index 96% rename from tests/Predis/Command/HyperLogLogCountTest.php rename to tests/Predis/Command/Redis/HyperLogLogCountTest.php index 82185cae..6270fadd 100644 --- a/tests/Predis/Command/HyperLogLogCountTest.php +++ b/tests/Predis/Command/Redis/HyperLogLogCountTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -24,7 +24,7 @@ class HyperLogLogCountTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HyperLogLogCount'; + return 'Predis\Command\Redis\HyperLogLogCount'; } /** diff --git a/tests/Predis/Command/HyperLogLogMergeTest.php b/tests/Predis/Command/Redis/HyperLogLogMergeTest.php similarity index 95% rename from tests/Predis/Command/HyperLogLogMergeTest.php rename to tests/Predis/Command/Redis/HyperLogLogMergeTest.php index 4930d3bc..3b8fed07 100644 --- a/tests/Predis/Command/HyperLogLogMergeTest.php +++ b/tests/Predis/Command/Redis/HyperLogLogMergeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -24,7 +24,7 @@ class HyperLogLogMergeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\HyperLogLogMerge'; + return 'Predis\Command\Redis\HyperLogLogMerge'; } /** diff --git a/tests/Predis/Command/KeyDeleteTest.php b/tests/Predis/Command/Redis/KeyDeleteTest.php similarity index 96% rename from tests/Predis/Command/KeyDeleteTest.php rename to tests/Predis/Command/Redis/KeyDeleteTest.php index e28009b6..74e73d13 100644 --- a/tests/Predis/Command/KeyDeleteTest.php +++ b/tests/Predis/Command/Redis/KeyDeleteTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyDeleteTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyDelete'; + return 'Predis\Command\Redis\KeyDelete'; } /** diff --git a/tests/Predis/Command/KeyDumpTest.php b/tests/Predis/Command/Redis/KeyDumpTest.php similarity index 93% rename from tests/Predis/Command/KeyDumpTest.php rename to tests/Predis/Command/Redis/KeyDumpTest.php index 020f74ab..d9998558 100644 --- a/tests/Predis/Command/KeyDumpTest.php +++ b/tests/Predis/Command/Redis/KeyDumpTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyDumpTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyDump'; + return 'Predis\Command\Redis\KeyDump'; } /** diff --git a/tests/Predis/Command/KeyExistsTest.php b/tests/Predis/Command/Redis/KeyExistsTest.php similarity index 96% rename from tests/Predis/Command/KeyExistsTest.php rename to tests/Predis/Command/Redis/KeyExistsTest.php index bdc646f8..1cf6912d 100644 --- a/tests/Predis/Command/KeyExistsTest.php +++ b/tests/Predis/Command/Redis/KeyExistsTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyExistsTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyExists'; + return 'Predis\Command\Redis\KeyExists'; } /** diff --git a/tests/Predis/Command/KeyExpireAtTest.php b/tests/Predis/Command/Redis/KeyExpireAtTest.php similarity index 96% rename from tests/Predis/Command/KeyExpireAtTest.php rename to tests/Predis/Command/Redis/KeyExpireAtTest.php index a216cef7..387f5741 100644 --- a/tests/Predis/Command/KeyExpireAtTest.php +++ b/tests/Predis/Command/Redis/KeyExpireAtTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyExpireAtTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyExpireAt'; + return 'Predis\Command\Redis\KeyExpireAt'; } /** diff --git a/tests/Predis/Command/KeyExpireTest.php b/tests/Predis/Command/Redis/KeyExpireTest.php similarity index 96% rename from tests/Predis/Command/KeyExpireTest.php rename to tests/Predis/Command/Redis/KeyExpireTest.php index d3c62ee1..13a05194 100644 --- a/tests/Predis/Command/KeyExpireTest.php +++ b/tests/Predis/Command/Redis/KeyExpireTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyExpireTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyExpire'; + return 'Predis\Command\Redis\KeyExpire'; } /** diff --git a/tests/Predis/Command/KeyKeysTest.php b/tests/Predis/Command/Redis/KeyKeysTest.php similarity index 95% rename from tests/Predis/Command/KeyKeysTest.php rename to tests/Predis/Command/Redis/KeyKeysTest.php index 4d6c68e9..66b4f444 100644 --- a/tests/Predis/Command/KeyKeysTest.php +++ b/tests/Predis/Command/Redis/KeyKeysTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyKeysTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyKeys'; + return 'Predis\Command\Redis\KeyKeys'; } /** diff --git a/tests/Predis/Command/KeyMigrateTest.php b/tests/Predis/Command/Redis/KeyMigrateTest.php similarity index 97% rename from tests/Predis/Command/KeyMigrateTest.php rename to tests/Predis/Command/Redis/KeyMigrateTest.php index ee861058..ba7b9769 100644 --- a/tests/Predis/Command/KeyMigrateTest.php +++ b/tests/Predis/Command/Redis/KeyMigrateTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyMigrateTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyMigrate'; + return 'Predis\Command\Redis\KeyMigrate'; } /** diff --git a/tests/Predis/Command/KeyMoveTest.php b/tests/Predis/Command/Redis/KeyMoveTest.php similarity index 96% rename from tests/Predis/Command/KeyMoveTest.php rename to tests/Predis/Command/Redis/KeyMoveTest.php index c47a84ca..2927ae81 100644 --- a/tests/Predis/Command/KeyMoveTest.php +++ b/tests/Predis/Command/Redis/KeyMoveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyMoveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyMove'; + return 'Predis\Command\Redis\KeyMove'; } /** diff --git a/tests/Predis/Command/KeyPersistTest.php b/tests/Predis/Command/Redis/KeyPersistTest.php similarity index 95% rename from tests/Predis/Command/KeyPersistTest.php rename to tests/Predis/Command/Redis/KeyPersistTest.php index 5c1306ed..eb9ffa55 100644 --- a/tests/Predis/Command/KeyPersistTest.php +++ b/tests/Predis/Command/Redis/KeyPersistTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyPersistTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyPersist'; + return 'Predis\Command\Redis\KeyPersist'; } /** diff --git a/tests/Predis/Command/KeyPreciseExpireAtTest.php b/tests/Predis/Command/Redis/KeyPreciseExpireAtTest.php similarity index 95% rename from tests/Predis/Command/KeyPreciseExpireAtTest.php rename to tests/Predis/Command/Redis/KeyPreciseExpireAtTest.php index edf0ea1c..86cb7592 100644 --- a/tests/Predis/Command/KeyPreciseExpireAtTest.php +++ b/tests/Predis/Command/Redis/KeyPreciseExpireAtTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyPreciseExpireAtTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyPreciseExpireAt'; + return 'Predis\Command\Redis\KeyPreciseExpireAt'; } /** diff --git a/tests/Predis/Command/KeyPreciseExpireTest.php b/tests/Predis/Command/Redis/KeyPreciseExpireTest.php similarity index 96% rename from tests/Predis/Command/KeyPreciseExpireTest.php rename to tests/Predis/Command/Redis/KeyPreciseExpireTest.php index b12340b7..4921dcd7 100644 --- a/tests/Predis/Command/KeyPreciseExpireTest.php +++ b/tests/Predis/Command/Redis/KeyPreciseExpireTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyPreciseExpireTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyPreciseExpire'; + return 'Predis\Command\Redis\KeyPreciseExpire'; } /** diff --git a/tests/Predis/Command/KeyPreciseTimeToLiveTest.php b/tests/Predis/Command/Redis/KeyPreciseTimeToLiveTest.php similarity index 95% rename from tests/Predis/Command/KeyPreciseTimeToLiveTest.php rename to tests/Predis/Command/Redis/KeyPreciseTimeToLiveTest.php index 26f0fbba..44514322 100644 --- a/tests/Predis/Command/KeyPreciseTimeToLiveTest.php +++ b/tests/Predis/Command/Redis/KeyPreciseTimeToLiveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyPreciseTimeToLiveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyPreciseTimeToLive'; + return 'Predis\Command\Redis\KeyPreciseTimeToLive'; } /** diff --git a/tests/Predis/Command/KeyRandomTest.php b/tests/Predis/Command/Redis/KeyRandomTest.php similarity index 95% rename from tests/Predis/Command/KeyRandomTest.php rename to tests/Predis/Command/Redis/KeyRandomTest.php index e7e0e793..2c6ad894 100644 --- a/tests/Predis/Command/KeyRandomTest.php +++ b/tests/Predis/Command/Redis/KeyRandomTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyRandomTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyRandom'; + return 'Predis\Command\Redis\KeyRandom'; } /** diff --git a/tests/Predis/Command/KeyRenamePreserveTest.php b/tests/Predis/Command/Redis/KeyRenamePreserveTest.php similarity index 95% rename from tests/Predis/Command/KeyRenamePreserveTest.php rename to tests/Predis/Command/Redis/KeyRenamePreserveTest.php index ecc3f75d..e3612fd6 100644 --- a/tests/Predis/Command/KeyRenamePreserveTest.php +++ b/tests/Predis/Command/Redis/KeyRenamePreserveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyRenamePreserveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyRenamePreserve'; + return 'Predis\Command\Redis\KeyRenamePreserve'; } /** diff --git a/tests/Predis/Command/KeyRenameTest.php b/tests/Predis/Command/Redis/KeyRenameTest.php similarity index 95% rename from tests/Predis/Command/KeyRenameTest.php rename to tests/Predis/Command/Redis/KeyRenameTest.php index 5517b04e..aa113d20 100644 --- a/tests/Predis/Command/KeyRenameTest.php +++ b/tests/Predis/Command/Redis/KeyRenameTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyRenameTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyRename'; + return 'Predis\Command\Redis\KeyRename'; } /** diff --git a/tests/Predis/Command/KeyRestoreTest.php b/tests/Predis/Command/Redis/KeyRestoreTest.php similarity index 93% rename from tests/Predis/Command/KeyRestoreTest.php rename to tests/Predis/Command/Redis/KeyRestoreTest.php index fc2ac7f5..c6e8b903 100644 --- a/tests/Predis/Command/KeyRestoreTest.php +++ b/tests/Predis/Command/Redis/KeyRestoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyRestoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyRestore'; + return 'Predis\Command\Redis\KeyRestore'; } /** diff --git a/tests/Predis/Command/KeyScanTest.php b/tests/Predis/Command/Redis/KeyScanTest.php similarity index 97% rename from tests/Predis/Command/KeyScanTest.php rename to tests/Predis/Command/Redis/KeyScanTest.php index cabfc691..b999b2c9 100644 --- a/tests/Predis/Command/KeyScanTest.php +++ b/tests/Predis/Command/Redis/KeyScanTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyScanTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyScan'; + return 'Predis\Command\Redis\KeyScan'; } /** diff --git a/tests/Predis/Command/KeySortTest.php b/tests/Predis/Command/Redis/KeySortTest.php similarity index 98% rename from tests/Predis/Command/KeySortTest.php rename to tests/Predis/Command/Redis/KeySortTest.php index 0421361b..d8dd07c5 100644 --- a/tests/Predis/Command/KeySortTest.php +++ b/tests/Predis/Command/Redis/KeySortTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; use Predis\Client; @@ -24,7 +24,7 @@ class KeySortTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeySort'; + return 'Predis\Command\Redis\KeySort'; } /** diff --git a/tests/Predis/Command/KeyTimeToLiveTest.php b/tests/Predis/Command/Redis/KeyTimeToLiveTest.php similarity index 95% rename from tests/Predis/Command/KeyTimeToLiveTest.php rename to tests/Predis/Command/Redis/KeyTimeToLiveTest.php index aceec3bb..5f991105 100644 --- a/tests/Predis/Command/KeyTimeToLiveTest.php +++ b/tests/Predis/Command/Redis/KeyTimeToLiveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyTimeToLiveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyTimeToLive'; + return 'Predis\Command\Redis\KeyTimeToLive'; } /** diff --git a/tests/Predis/Command/KeyTypeTest.php b/tests/Predis/Command/Redis/KeyTypeTest.php similarity index 95% rename from tests/Predis/Command/KeyTypeTest.php rename to tests/Predis/Command/Redis/KeyTypeTest.php index f2b053a3..cfe915d1 100644 --- a/tests/Predis/Command/KeyTypeTest.php +++ b/tests/Predis/Command/Redis/KeyTypeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class KeyTypeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\KeyType'; + return 'Predis\Command\Redis\KeyType'; } /** diff --git a/tests/Predis/Command/ListIndexTest.php b/tests/Predis/Command/Redis/ListIndexTest.php similarity index 96% rename from tests/Predis/Command/ListIndexTest.php rename to tests/Predis/Command/Redis/ListIndexTest.php index 72fe2b35..4eafa0d2 100644 --- a/tests/Predis/Command/ListIndexTest.php +++ b/tests/Predis/Command/Redis/ListIndexTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListIndexTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListIndex'; + return 'Predis\Command\Redis\ListIndex'; } /** diff --git a/tests/Predis/Command/ListInsertTest.php b/tests/Predis/Command/Redis/ListInsertTest.php similarity index 96% rename from tests/Predis/Command/ListInsertTest.php rename to tests/Predis/Command/Redis/ListInsertTest.php index 895c5c35..5bbefdd6 100644 --- a/tests/Predis/Command/ListInsertTest.php +++ b/tests/Predis/Command/Redis/ListInsertTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListInsertTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListInsert'; + return 'Predis\Command\Redis\ListInsert'; } /** diff --git a/tests/Predis/Command/ListLengthTest.php b/tests/Predis/Command/Redis/ListLengthTest.php similarity index 95% rename from tests/Predis/Command/ListLengthTest.php rename to tests/Predis/Command/Redis/ListLengthTest.php index 2b6b8347..25584871 100644 --- a/tests/Predis/Command/ListLengthTest.php +++ b/tests/Predis/Command/Redis/ListLengthTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListLengthTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListLength'; + return 'Predis\Command\Redis\ListLength'; } /** diff --git a/tests/Predis/Command/ListPopFirstBlockingTest.php b/tests/Predis/Command/Redis/ListPopFirstBlockingTest.php similarity index 94% rename from tests/Predis/Command/ListPopFirstBlockingTest.php rename to tests/Predis/Command/Redis/ListPopFirstBlockingTest.php index 61c71f27..a922a374 100644 --- a/tests/Predis/Command/ListPopFirstBlockingTest.php +++ b/tests/Predis/Command/Redis/ListPopFirstBlockingTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopFirstBlockingTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopFirstBlocking'; + return 'Predis\Command\Redis\ListPopFirstBlocking'; } /** diff --git a/tests/Predis/Command/ListPopFirstTest.php b/tests/Predis/Command/Redis/ListPopFirstTest.php similarity index 95% rename from tests/Predis/Command/ListPopFirstTest.php rename to tests/Predis/Command/Redis/ListPopFirstTest.php index 8a70296d..7bc801a0 100644 --- a/tests/Predis/Command/ListPopFirstTest.php +++ b/tests/Predis/Command/Redis/ListPopFirstTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopFirstTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopFirst'; + return 'Predis\Command\Redis\ListPopFirst'; } /** diff --git a/tests/Predis/Command/ListPopLastBlockingTest.php b/tests/Predis/Command/Redis/ListPopLastBlockingTest.php similarity index 94% rename from tests/Predis/Command/ListPopLastBlockingTest.php rename to tests/Predis/Command/Redis/ListPopLastBlockingTest.php index 4b79e62c..7c029422 100644 --- a/tests/Predis/Command/ListPopLastBlockingTest.php +++ b/tests/Predis/Command/Redis/ListPopLastBlockingTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopLastBlockingTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopLastBlocking'; + return 'Predis\Command\Redis\ListPopLastBlocking'; } /** diff --git a/tests/Predis/Command/ListPopLastPushHeadBlockingTest.php b/tests/Predis/Command/Redis/ListPopLastPushHeadBlockingTest.php similarity index 91% rename from tests/Predis/Command/ListPopLastPushHeadBlockingTest.php rename to tests/Predis/Command/Redis/ListPopLastPushHeadBlockingTest.php index d4c063e8..24ad2866 100644 --- a/tests/Predis/Command/ListPopLastPushHeadBlockingTest.php +++ b/tests/Predis/Command/Redis/ListPopLastPushHeadBlockingTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopLastPushHeadBlockingTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopLastPushHeadBlocking'; + return 'Predis\Command\Redis\ListPopLastPushHeadBlocking'; } /** diff --git a/tests/Predis/Command/ListPopLastPushHeadTest.php b/tests/Predis/Command/Redis/ListPopLastPushHeadTest.php similarity index 97% rename from tests/Predis/Command/ListPopLastPushHeadTest.php rename to tests/Predis/Command/Redis/ListPopLastPushHeadTest.php index 61bcd3dc..51bc7571 100644 --- a/tests/Predis/Command/ListPopLastPushHeadTest.php +++ b/tests/Predis/Command/Redis/ListPopLastPushHeadTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopLastPushHeadTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopLastPushHead'; + return 'Predis\Command\Redis\ListPopLastPushHead'; } /** diff --git a/tests/Predis/Command/ListPopLastTest.php b/tests/Predis/Command/Redis/ListPopLastTest.php similarity index 95% rename from tests/Predis/Command/ListPopLastTest.php rename to tests/Predis/Command/Redis/ListPopLastTest.php index 5798406b..ad5db7a3 100644 --- a/tests/Predis/Command/ListPopLastTest.php +++ b/tests/Predis/Command/Redis/ListPopLastTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPopLastTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPopLast'; + return 'Predis\Command\Redis\ListPopLast'; } /** diff --git a/tests/Predis/Command/ListPushHeadTest.php b/tests/Predis/Command/Redis/ListPushHeadTest.php similarity index 96% rename from tests/Predis/Command/ListPushHeadTest.php rename to tests/Predis/Command/Redis/ListPushHeadTest.php index bd8fd1fb..e9dbf629 100644 --- a/tests/Predis/Command/ListPushHeadTest.php +++ b/tests/Predis/Command/Redis/ListPushHeadTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPushHeadTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPushHead'; + return 'Predis\Command\Redis\ListPushHead'; } /** diff --git a/tests/Predis/Command/ListPushHeadXTest.php b/tests/Predis/Command/Redis/ListPushHeadXTest.php similarity index 96% rename from tests/Predis/Command/ListPushHeadXTest.php rename to tests/Predis/Command/Redis/ListPushHeadXTest.php index 6a9841f7..f4ae3c08 100644 --- a/tests/Predis/Command/ListPushHeadXTest.php +++ b/tests/Predis/Command/Redis/ListPushHeadXTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPushHeadXTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPushHeadX'; + return 'Predis\Command\Redis\ListPushHeadX'; } /** diff --git a/tests/Predis/Command/ListPushTailTest.php b/tests/Predis/Command/Redis/ListPushTailTest.php similarity index 96% rename from tests/Predis/Command/ListPushTailTest.php rename to tests/Predis/Command/Redis/ListPushTailTest.php index 3700ffdc..f2b9d701 100644 --- a/tests/Predis/Command/ListPushTailTest.php +++ b/tests/Predis/Command/Redis/ListPushTailTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPushTailTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPushTail'; + return 'Predis\Command\Redis\ListPushTail'; } /** diff --git a/tests/Predis/Command/ListPushTailXTest.php b/tests/Predis/Command/Redis/ListPushTailXTest.php similarity index 96% rename from tests/Predis/Command/ListPushTailXTest.php rename to tests/Predis/Command/Redis/ListPushTailXTest.php index b99957e9..eb51e7ad 100644 --- a/tests/Predis/Command/ListPushTailXTest.php +++ b/tests/Predis/Command/Redis/ListPushTailXTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListPushTailXTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListPushTailX'; + return 'Predis\Command\Redis\ListPushTailX'; } /** diff --git a/tests/Predis/Command/ListRangeTest.php b/tests/Predis/Command/Redis/ListRangeTest.php similarity index 97% rename from tests/Predis/Command/ListRangeTest.php rename to tests/Predis/Command/Redis/ListRangeTest.php index 6da4aa8b..289ac475 100644 --- a/tests/Predis/Command/ListRangeTest.php +++ b/tests/Predis/Command/Redis/ListRangeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListRangeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListRange'; + return 'Predis\Command\Redis\ListRange'; } /** diff --git a/tests/Predis/Command/ListRemoveTest.php b/tests/Predis/Command/Redis/ListRemoveTest.php similarity index 97% rename from tests/Predis/Command/ListRemoveTest.php rename to tests/Predis/Command/Redis/ListRemoveTest.php index a7013ee0..3a8be77c 100644 --- a/tests/Predis/Command/ListRemoveTest.php +++ b/tests/Predis/Command/Redis/ListRemoveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListRemoveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListRemove'; + return 'Predis\Command\Redis\ListRemove'; } /** diff --git a/tests/Predis/Command/ListSetTest.php b/tests/Predis/Command/Redis/ListSetTest.php similarity index 96% rename from tests/Predis/Command/ListSetTest.php rename to tests/Predis/Command/Redis/ListSetTest.php index 177a73ee..595d355a 100644 --- a/tests/Predis/Command/ListSetTest.php +++ b/tests/Predis/Command/Redis/ListSetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListSetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListSet'; + return 'Predis\Command\Redis\ListSet'; } /** diff --git a/tests/Predis/Command/ListTrimTest.php b/tests/Predis/Command/Redis/ListTrimTest.php similarity index 97% rename from tests/Predis/Command/ListTrimTest.php rename to tests/Predis/Command/Redis/ListTrimTest.php index 0dca56de..b429fbe7 100644 --- a/tests/Predis/Command/ListTrimTest.php +++ b/tests/Predis/Command/Redis/ListTrimTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ListTrimTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ListTrim'; + return 'Predis\Command\Redis\ListTrim'; } /** diff --git a/tests/Predis/Command/PubSubPublishTest.php b/tests/Predis/Command/Redis/PubSubPublishTest.php similarity index 94% rename from tests/Predis/Command/PubSubPublishTest.php rename to tests/Predis/Command/Redis/PubSubPublishTest.php index a6369ac2..6b22f056 100644 --- a/tests/Predis/Command/PubSubPublishTest.php +++ b/tests/Predis/Command/Redis/PubSubPublishTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubPublishTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubPublish'; + return 'Predis\Command\Redis\PubSubPublish'; } /** diff --git a/tests/Predis/Command/PubSubPubsubTest.php b/tests/Predis/Command/Redis/PubSubPubsubTest.php similarity index 95% rename from tests/Predis/Command/PubSubPubsubTest.php rename to tests/Predis/Command/Redis/PubSubPubsubTest.php index a341becf..2f6b6cb9 100644 --- a/tests/Predis/Command/PubSubPubsubTest.php +++ b/tests/Predis/Command/Redis/PubSubPubsubTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubPubsubTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubPubsub'; + return 'Predis\Command\Redis\PubSubPubsub'; } /** diff --git a/tests/Predis/Command/PubSubSubscribeByPatternTest.php b/tests/Predis/Command/Redis/PubSubSubscribeByPatternTest.php similarity index 97% rename from tests/Predis/Command/PubSubSubscribeByPatternTest.php rename to tests/Predis/Command/Redis/PubSubSubscribeByPatternTest.php index 21dfc499..d3da7a6e 100644 --- a/tests/Predis/Command/PubSubSubscribeByPatternTest.php +++ b/tests/Predis/Command/Redis/PubSubSubscribeByPatternTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubSubscribeByPatternTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubSubscribeByPattern'; + return 'Predis\Command\Redis\PubSubSubscribeByPattern'; } /** diff --git a/tests/Predis/Command/PubSubSubscribeTest.php b/tests/Predis/Command/Redis/PubSubSubscribeTest.php similarity index 97% rename from tests/Predis/Command/PubSubSubscribeTest.php rename to tests/Predis/Command/Redis/PubSubSubscribeTest.php index 2500f629..4c53dc34 100644 --- a/tests/Predis/Command/PubSubSubscribeTest.php +++ b/tests/Predis/Command/Redis/PubSubSubscribeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubSubscribeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubSubscribe'; + return 'Predis\Command\Redis\PubSubSubscribe'; } /** diff --git a/tests/Predis/Command/PubSubUnsubscribeByPatternTest.php b/tests/Predis/Command/Redis/PubSubUnsubscribeByPatternTest.php similarity index 96% rename from tests/Predis/Command/PubSubUnsubscribeByPatternTest.php rename to tests/Predis/Command/Redis/PubSubUnsubscribeByPatternTest.php index 6e29a6ea..b385600e 100644 --- a/tests/Predis/Command/PubSubUnsubscribeByPatternTest.php +++ b/tests/Predis/Command/Redis/PubSubUnsubscribeByPatternTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubUnsubscribeByPatternTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubUnsubscribeByPattern'; + return 'Predis\Command\Redis\PubSubUnsubscribeByPattern'; } /** diff --git a/tests/Predis/Command/PubSubUnsubscribeTest.php b/tests/Predis/Command/Redis/PubSubUnsubscribeTest.php similarity index 97% rename from tests/Predis/Command/PubSubUnsubscribeTest.php rename to tests/Predis/Command/Redis/PubSubUnsubscribeTest.php index 7c2a4002..45f2b773 100644 --- a/tests/Predis/Command/PubSubUnsubscribeTest.php +++ b/tests/Predis/Command/Redis/PubSubUnsubscribeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class PubSubUnsubscribeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\PubSubUnsubscribe'; + return 'Predis\Command\Redis\PubSubUnsubscribe'; } /** diff --git a/tests/Predis/Command/ServerBackgroundRewriteAOFTest.php b/tests/Predis/Command/Redis/ServerBackgroundRewriteAOFTest.php similarity index 90% rename from tests/Predis/Command/ServerBackgroundRewriteAOFTest.php rename to tests/Predis/Command/Redis/ServerBackgroundRewriteAOFTest.php index 9706f112..6c015d0f 100644 --- a/tests/Predis/Command/ServerBackgroundRewriteAOFTest.php +++ b/tests/Predis/Command/Redis/ServerBackgroundRewriteAOFTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerBackgroundRewriteAOFTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerBackgroundRewriteAOF'; + return 'Predis\Command\Redis\ServerBackgroundRewriteAOF'; } /** diff --git a/tests/Predis/Command/ServerBackgroundSaveTest.php b/tests/Predis/Command/Redis/ServerBackgroundSaveTest.php similarity index 91% rename from tests/Predis/Command/ServerBackgroundSaveTest.php rename to tests/Predis/Command/Redis/ServerBackgroundSaveTest.php index 54d3b2fd..a8b4ec04 100644 --- a/tests/Predis/Command/ServerBackgroundSaveTest.php +++ b/tests/Predis/Command/Redis/ServerBackgroundSaveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerBackgroundSaveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerBackgroundSave'; + return 'Predis\Command\Redis\ServerBackgroundSave'; } /** diff --git a/tests/Predis/Command/ServerClientTest.php b/tests/Predis/Command/Redis/ServerClientTest.php similarity index 98% rename from tests/Predis/Command/ServerClientTest.php rename to tests/Predis/Command/Redis/ServerClientTest.php index f41680d9..fb6dc1e2 100644 --- a/tests/Predis/Command/ServerClientTest.php +++ b/tests/Predis/Command/Redis/ServerClientTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerClientTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerClient'; + return 'Predis\Command\Redis\ServerClient'; } /** diff --git a/tests/Predis/Command/ServerCommandTest.php b/tests/Predis/Command/Redis/ServerCommandTest.php similarity index 97% rename from tests/Predis/Command/ServerCommandTest.php rename to tests/Predis/Command/Redis/ServerCommandTest.php index a4aa4080..134107f7 100644 --- a/tests/Predis/Command/ServerCommandTest.php +++ b/tests/Predis/Command/Redis/ServerCommandTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; use Predis\Response\Status; @@ -24,7 +24,7 @@ class ServerCommandTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerCommand'; + return 'Predis\Command\Redis\ServerCommand'; } /** diff --git a/tests/Predis/Command/ServerConfigTest.php b/tests/Predis/Command/Redis/ServerConfigTest.php similarity index 97% rename from tests/Predis/Command/ServerConfigTest.php rename to tests/Predis/Command/Redis/ServerConfigTest.php index 1bbbb552..f97c64e5 100644 --- a/tests/Predis/Command/ServerConfigTest.php +++ b/tests/Predis/Command/Redis/ServerConfigTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerConfigTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerConfig'; + return 'Predis\Command\Redis\ServerConfig'; } /** diff --git a/tests/Predis/Command/ServerDatabaseSizeTest.php b/tests/Predis/Command/Redis/ServerDatabaseSizeTest.php similarity index 93% rename from tests/Predis/Command/ServerDatabaseSizeTest.php rename to tests/Predis/Command/Redis/ServerDatabaseSizeTest.php index b984e373..7387f331 100644 --- a/tests/Predis/Command/ServerDatabaseSizeTest.php +++ b/tests/Predis/Command/Redis/ServerDatabaseSizeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerDatabaseSizeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerDatabaseSize'; + return 'Predis\Command\Redis\ServerDatabaseSize'; } /** diff --git a/tests/Predis/Command/ServerEvalSHATest.php b/tests/Predis/Command/Redis/ServerEvalSHATest.php similarity index 96% rename from tests/Predis/Command/ServerEvalSHATest.php rename to tests/Predis/Command/Redis/ServerEvalSHATest.php index d7b95535..02a4e507 100644 --- a/tests/Predis/Command/ServerEvalSHATest.php +++ b/tests/Predis/Command/Redis/ServerEvalSHATest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerEvalSHATest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerEvalSHA'; + return 'Predis\Command\Redis\ServerEvalSHA'; } /** diff --git a/tests/Predis/Command/ServerEvalTest.php b/tests/Predis/Command/Redis/ServerEvalTest.php similarity index 96% rename from tests/Predis/Command/ServerEvalTest.php rename to tests/Predis/Command/Redis/ServerEvalTest.php index 181e58b1..9b124031 100644 --- a/tests/Predis/Command/ServerEvalTest.php +++ b/tests/Predis/Command/Redis/ServerEvalTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerEvalTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerEval'; + return 'Predis\Command\Redis\ServerEval'; } /** diff --git a/tests/Predis/Command/ServerFlushAllTest.php b/tests/Predis/Command/Redis/ServerFlushAllTest.php similarity index 91% rename from tests/Predis/Command/ServerFlushAllTest.php rename to tests/Predis/Command/Redis/ServerFlushAllTest.php index 29736280..c73a0837 100644 --- a/tests/Predis/Command/ServerFlushAllTest.php +++ b/tests/Predis/Command/Redis/ServerFlushAllTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerFlushAllTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerFlushAll'; + return 'Predis\Command\Redis\ServerFlushAll'; } /** diff --git a/tests/Predis/Command/ServerFlushDatabaseTest.php b/tests/Predis/Command/Redis/ServerFlushDatabaseTest.php similarity index 93% rename from tests/Predis/Command/ServerFlushDatabaseTest.php rename to tests/Predis/Command/Redis/ServerFlushDatabaseTest.php index 5f642580..27922876 100644 --- a/tests/Predis/Command/ServerFlushDatabaseTest.php +++ b/tests/Predis/Command/Redis/ServerFlushDatabaseTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerFlushDatabaseTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerFlushDatabase'; + return 'Predis\Command\Redis\ServerFlushDatabase'; } /** diff --git a/tests/Predis/Command/ServerInfoTest.php b/tests/Predis/Command/Redis/ServerInfoTest.php similarity index 98% rename from tests/Predis/Command/ServerInfoTest.php rename to tests/Predis/Command/Redis/ServerInfoTest.php index e635fcee..c4e9f502 100644 --- a/tests/Predis/Command/ServerInfoTest.php +++ b/tests/Predis/Command/Redis/ServerInfoTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerInfoTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerInfo'; + return 'Predis\Command\Redis\ServerInfo'; } /** diff --git a/tests/Predis/Command/ServerInfoV26xTest.php b/tests/Predis/Command/Redis/ServerInfoV26xTest.php similarity index 98% rename from tests/Predis/Command/ServerInfoV26xTest.php rename to tests/Predis/Command/Redis/ServerInfoV26xTest.php index 77e160f8..c8c40068 100644 --- a/tests/Predis/Command/ServerInfoV26xTest.php +++ b/tests/Predis/Command/Redis/ServerInfoV26xTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerInfoV26xTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerInfoV26x'; + return 'Predis\Command\Redis\ServerInfoV26x'; } /** diff --git a/tests/Predis/Command/ServerLastSaveTest.php b/tests/Predis/Command/Redis/ServerLastSaveTest.php similarity index 93% rename from tests/Predis/Command/ServerLastSaveTest.php rename to tests/Predis/Command/Redis/ServerLastSaveTest.php index f0511271..02148dec 100644 --- a/tests/Predis/Command/ServerLastSaveTest.php +++ b/tests/Predis/Command/Redis/ServerLastSaveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerLastSaveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerLastSave'; + return 'Predis\Command\Redis\ServerLastSave'; } /** diff --git a/tests/Predis/Command/ServerMonitorTest.php b/tests/Predis/Command/Redis/ServerMonitorTest.php similarity index 95% rename from tests/Predis/Command/ServerMonitorTest.php rename to tests/Predis/Command/Redis/ServerMonitorTest.php index 68bdbcfe..a5873855 100644 --- a/tests/Predis/Command/ServerMonitorTest.php +++ b/tests/Predis/Command/Redis/ServerMonitorTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -23,7 +23,7 @@ class ServerMonitorTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerMonitor'; + return 'Predis\Command\Redis\ServerMonitor'; } /** diff --git a/tests/Predis/Command/ServerObjectTest.php b/tests/Predis/Command/Redis/ServerObjectTest.php similarity index 96% rename from tests/Predis/Command/ServerObjectTest.php rename to tests/Predis/Command/Redis/ServerObjectTest.php index 1ac1a518..4e419ec6 100644 --- a/tests/Predis/Command/ServerObjectTest.php +++ b/tests/Predis/Command/Redis/ServerObjectTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerObjectTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerObject'; + return 'Predis\Command\Redis\ServerObject'; } /** diff --git a/tests/Predis/Command/ServerSaveTest.php b/tests/Predis/Command/Redis/ServerSaveTest.php similarity index 92% rename from tests/Predis/Command/ServerSaveTest.php rename to tests/Predis/Command/Redis/ServerSaveTest.php index fecf1db9..94ae2765 100644 --- a/tests/Predis/Command/ServerSaveTest.php +++ b/tests/Predis/Command/Redis/ServerSaveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerSaveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerSave'; + return 'Predis\Command\Redis\ServerSave'; } /** diff --git a/tests/Predis/Command/ServerScriptTest.php b/tests/Predis/Command/Redis/ServerScriptTest.php similarity index 96% rename from tests/Predis/Command/ServerScriptTest.php rename to tests/Predis/Command/Redis/ServerScriptTest.php index 88558073..26809ac6 100644 --- a/tests/Predis/Command/ServerScriptTest.php +++ b/tests/Predis/Command/Redis/ServerScriptTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerScriptTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerScript'; + return 'Predis\Command\Redis\ServerScript'; } /** diff --git a/tests/Predis/Command/ServerSentinelTest.php b/tests/Predis/Command/Redis/ServerSentinelTest.php similarity index 98% rename from tests/Predis/Command/ServerSentinelTest.php rename to tests/Predis/Command/Redis/ServerSentinelTest.php index b15a5206..dadd66e0 100644 --- a/tests/Predis/Command/ServerSentinelTest.php +++ b/tests/Predis/Command/Redis/ServerSentinelTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerSentinelTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerSentinel'; + return 'Predis\Command\Redis\ServerSentinel'; } /** diff --git a/tests/Predis/Command/ServerShutdownTest.php b/tests/Predis/Command/Redis/ServerShutdownTest.php similarity index 90% rename from tests/Predis/Command/ServerShutdownTest.php rename to tests/Predis/Command/Redis/ServerShutdownTest.php index ced931ee..6b34418d 100644 --- a/tests/Predis/Command/ServerShutdownTest.php +++ b/tests/Predis/Command/Redis/ServerShutdownTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerShutdownTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerShutdown'; + return 'Predis\Command\Redis\ServerShutdown'; } /** diff --git a/tests/Predis/Command/ServerSlaveOfTest.php b/tests/Predis/Command/Redis/ServerSlaveOfTest.php similarity index 95% rename from tests/Predis/Command/ServerSlaveOfTest.php rename to tests/Predis/Command/Redis/ServerSlaveOfTest.php index f6932ff1..2a8d8869 100644 --- a/tests/Predis/Command/ServerSlaveOfTest.php +++ b/tests/Predis/Command/Redis/ServerSlaveOfTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerSlaveOfTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerSlaveOf'; + return 'Predis\Command\Redis\ServerSlaveOf'; } /** diff --git a/tests/Predis/Command/ServerSlowlogTest.php b/tests/Predis/Command/Redis/ServerSlowlogTest.php similarity index 97% rename from tests/Predis/Command/ServerSlowlogTest.php rename to tests/Predis/Command/Redis/ServerSlowlogTest.php index a506802a..b93b337a 100644 --- a/tests/Predis/Command/ServerSlowlogTest.php +++ b/tests/Predis/Command/Redis/ServerSlowlogTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * In order to support the output of SLOWLOG, the backend connection must be @@ -25,7 +25,7 @@ class ServerSlowlogTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerSlowlog'; + return 'Predis\Command\Redis\ServerSlowlog'; } /** diff --git a/tests/Predis/Command/ServerTimeTest.php b/tests/Predis/Command/Redis/ServerTimeTest.php similarity index 94% rename from tests/Predis/Command/ServerTimeTest.php rename to tests/Predis/Command/Redis/ServerTimeTest.php index 41c583c4..66aaefbe 100644 --- a/tests/Predis/Command/ServerTimeTest.php +++ b/tests/Predis/Command/Redis/ServerTimeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ServerTimeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ServerTime'; + return 'Predis\Command\Redis\ServerTime'; } /** diff --git a/tests/Predis/Command/SetAddTest.php b/tests/Predis/Command/Redis/SetAddTest.php similarity index 96% rename from tests/Predis/Command/SetAddTest.php rename to tests/Predis/Command/Redis/SetAddTest.php index eea81160..cf80a4bd 100644 --- a/tests/Predis/Command/SetAddTest.php +++ b/tests/Predis/Command/Redis/SetAddTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetAddTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetAdd'; + return 'Predis\Command\Redis\SetAdd'; } /** diff --git a/tests/Predis/Command/SetCardinalityTest.php b/tests/Predis/Command/Redis/SetCardinalityTest.php similarity index 95% rename from tests/Predis/Command/SetCardinalityTest.php rename to tests/Predis/Command/Redis/SetCardinalityTest.php index 840ea248..b148fc50 100644 --- a/tests/Predis/Command/SetCardinalityTest.php +++ b/tests/Predis/Command/Redis/SetCardinalityTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetCardinalityTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetCardinality'; + return 'Predis\Command\Redis\SetCardinality'; } /** diff --git a/tests/Predis/Command/SetDifferenceStoreTest.php b/tests/Predis/Command/Redis/SetDifferenceStoreTest.php similarity index 97% rename from tests/Predis/Command/SetDifferenceStoreTest.php rename to tests/Predis/Command/Redis/SetDifferenceStoreTest.php index 7cbd54e6..3cbdd81f 100644 --- a/tests/Predis/Command/SetDifferenceStoreTest.php +++ b/tests/Predis/Command/Redis/SetDifferenceStoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetDifferenceStoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetDifferenceStore'; + return 'Predis\Command\Redis\SetDifferenceStore'; } /** diff --git a/tests/Predis/Command/SetDifferenceTest.php b/tests/Predis/Command/Redis/SetDifferenceTest.php similarity index 97% rename from tests/Predis/Command/SetDifferenceTest.php rename to tests/Predis/Command/Redis/SetDifferenceTest.php index d3bed232..b32c4b33 100644 --- a/tests/Predis/Command/SetDifferenceTest.php +++ b/tests/Predis/Command/Redis/SetDifferenceTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetDifferenceTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetDifference'; + return 'Predis\Command\Redis\SetDifference'; } /** diff --git a/tests/Predis/Command/SetIntersectionStoreTest.php b/tests/Predis/Command/Redis/SetIntersectionStoreTest.php similarity index 97% rename from tests/Predis/Command/SetIntersectionStoreTest.php rename to tests/Predis/Command/Redis/SetIntersectionStoreTest.php index d5a212ea..b923e832 100644 --- a/tests/Predis/Command/SetIntersectionStoreTest.php +++ b/tests/Predis/Command/Redis/SetIntersectionStoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetIntersectionStoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetIntersectionStore'; + return 'Predis\Command\Redis\SetIntersectionStore'; } /** diff --git a/tests/Predis/Command/SetIntersectionTest.php b/tests/Predis/Command/Redis/SetIntersectionTest.php similarity index 97% rename from tests/Predis/Command/SetIntersectionTest.php rename to tests/Predis/Command/Redis/SetIntersectionTest.php index 864e2b28..e6395976 100644 --- a/tests/Predis/Command/SetIntersectionTest.php +++ b/tests/Predis/Command/Redis/SetIntersectionTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetIntersectionTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetIntersection'; + return 'Predis\Command\Redis\SetIntersection'; } /** diff --git a/tests/Predis/Command/SetIsMemberTest.php b/tests/Predis/Command/Redis/SetIsMemberTest.php similarity index 96% rename from tests/Predis/Command/SetIsMemberTest.php rename to tests/Predis/Command/Redis/SetIsMemberTest.php index 44a080b5..12e2fccf 100644 --- a/tests/Predis/Command/SetIsMemberTest.php +++ b/tests/Predis/Command/Redis/SetIsMemberTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetIsMemberTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetIsMember'; + return 'Predis\Command\Redis\SetIsMember'; } /** diff --git a/tests/Predis/Command/SetMembersTest.php b/tests/Predis/Command/Redis/SetMembersTest.php similarity index 95% rename from tests/Predis/Command/SetMembersTest.php rename to tests/Predis/Command/Redis/SetMembersTest.php index fadb663f..686121ea 100644 --- a/tests/Predis/Command/SetMembersTest.php +++ b/tests/Predis/Command/Redis/SetMembersTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetMembersTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetMembers'; + return 'Predis\Command\Redis\SetMembers'; } /** diff --git a/tests/Predis/Command/SetMoveTest.php b/tests/Predis/Command/Redis/SetMoveTest.php similarity index 97% rename from tests/Predis/Command/SetMoveTest.php rename to tests/Predis/Command/Redis/SetMoveTest.php index 9b9d195e..301064e7 100644 --- a/tests/Predis/Command/SetMoveTest.php +++ b/tests/Predis/Command/Redis/SetMoveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetMoveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetMove'; + return 'Predis\Command\Redis\SetMove'; } /** diff --git a/tests/Predis/Command/SetPopTest.php b/tests/Predis/Command/Redis/SetPopTest.php similarity index 96% rename from tests/Predis/Command/SetPopTest.php rename to tests/Predis/Command/Redis/SetPopTest.php index 87b13c26..a82e9066 100644 --- a/tests/Predis/Command/SetPopTest.php +++ b/tests/Predis/Command/Redis/SetPopTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetPopTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetPop'; + return 'Predis\Command\Redis\SetPop'; } /** diff --git a/tests/Predis/Command/SetRandomMemberTest.php b/tests/Predis/Command/Redis/SetRandomMemberTest.php similarity index 95% rename from tests/Predis/Command/SetRandomMemberTest.php rename to tests/Predis/Command/Redis/SetRandomMemberTest.php index 240238cc..dac23c57 100644 --- a/tests/Predis/Command/SetRandomMemberTest.php +++ b/tests/Predis/Command/Redis/SetRandomMemberTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetRandomMemberTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetRandomMember'; + return 'Predis\Command\Redis\SetRandomMember'; } /** diff --git a/tests/Predis/Command/SetRemoveTest.php b/tests/Predis/Command/Redis/SetRemoveTest.php similarity index 96% rename from tests/Predis/Command/SetRemoveTest.php rename to tests/Predis/Command/Redis/SetRemoveTest.php index 1bc9081d..62d7aa74 100644 --- a/tests/Predis/Command/SetRemoveTest.php +++ b/tests/Predis/Command/Redis/SetRemoveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetRemoveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetRemove'; + return 'Predis\Command\Redis\SetRemove'; } /** diff --git a/tests/Predis/Command/SetScanTest.php b/tests/Predis/Command/Redis/SetScanTest.php similarity index 97% rename from tests/Predis/Command/SetScanTest.php rename to tests/Predis/Command/Redis/SetScanTest.php index 131a1bb1..c01783d2 100644 --- a/tests/Predis/Command/SetScanTest.php +++ b/tests/Predis/Command/Redis/SetScanTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetScanTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetScan'; + return 'Predis\Command\Redis\SetScan'; } /** diff --git a/tests/Predis/Command/SetUnionStoreTest.php b/tests/Predis/Command/Redis/SetUnionStoreTest.php similarity index 97% rename from tests/Predis/Command/SetUnionStoreTest.php rename to tests/Predis/Command/Redis/SetUnionStoreTest.php index 43e3a2ba..6a101af7 100644 --- a/tests/Predis/Command/SetUnionStoreTest.php +++ b/tests/Predis/Command/Redis/SetUnionStoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetUnionStoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetUnionStore'; + return 'Predis\Command\Redis\SetUnionStore'; } /** diff --git a/tests/Predis/Command/SetUnionTest.php b/tests/Predis/Command/Redis/SetUnionTest.php similarity index 97% rename from tests/Predis/Command/SetUnionTest.php rename to tests/Predis/Command/Redis/SetUnionTest.php index 96110877..d95efc06 100644 --- a/tests/Predis/Command/SetUnionTest.php +++ b/tests/Predis/Command/Redis/SetUnionTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class SetUnionTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\SetUnion'; + return 'Predis\Command\Redis\SetUnion'; } /** diff --git a/tests/Predis/Command/StringAppendTest.php b/tests/Predis/Command/Redis/StringAppendTest.php similarity index 96% rename from tests/Predis/Command/StringAppendTest.php rename to tests/Predis/Command/Redis/StringAppendTest.php index bb846b42..1aacc55d 100644 --- a/tests/Predis/Command/StringAppendTest.php +++ b/tests/Predis/Command/Redis/StringAppendTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringAppendTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringAppend'; + return 'Predis\Command\Redis\StringAppend'; } /** diff --git a/tests/Predis/Command/StringBitCountTest.php b/tests/Predis/Command/Redis/StringBitCountTest.php similarity index 95% rename from tests/Predis/Command/StringBitCountTest.php rename to tests/Predis/Command/Redis/StringBitCountTest.php index 00780ed6..b9e3ab03 100644 --- a/tests/Predis/Command/StringBitCountTest.php +++ b/tests/Predis/Command/Redis/StringBitCountTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringBitCountTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringBitCount'; + return 'Predis\Command\Redis\StringBitCount'; } /** diff --git a/tests/Predis/Command/StringBitFieldTest.php b/tests/Predis/Command/Redis/StringBitFieldTest.php similarity index 97% rename from tests/Predis/Command/StringBitFieldTest.php rename to tests/Predis/Command/Redis/StringBitFieldTest.php index 244ed0e0..6cb3ea53 100644 --- a/tests/Predis/Command/StringBitFieldTest.php +++ b/tests/Predis/Command/Redis/StringBitFieldTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringBitFieldTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringBitField'; + return 'Predis\Command\Redis\StringBitField'; } /** diff --git a/tests/Predis/Command/StringBitOpTest.php b/tests/Predis/Command/Redis/StringBitOpTest.php similarity index 98% rename from tests/Predis/Command/StringBitOpTest.php rename to tests/Predis/Command/Redis/StringBitOpTest.php index 8295004a..b10c55ba 100644 --- a/tests/Predis/Command/StringBitOpTest.php +++ b/tests/Predis/Command/Redis/StringBitOpTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringBitOpTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringBitOp'; + return 'Predis\Command\Redis\StringBitOp'; } /** diff --git a/tests/Predis/Command/StringBitPosTest.php b/tests/Predis/Command/Redis/StringBitPosTest.php similarity index 96% rename from tests/Predis/Command/StringBitPosTest.php rename to tests/Predis/Command/Redis/StringBitPosTest.php index e0c4c36f..348ea1ff 100644 --- a/tests/Predis/Command/StringBitPosTest.php +++ b/tests/Predis/Command/Redis/StringBitPosTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringBitPosTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringBitPos'; + return 'Predis\Command\Redis\StringBitPos'; } /** diff --git a/tests/Predis/Command/StringDecrementByTest.php b/tests/Predis/Command/Redis/StringDecrementByTest.php similarity index 96% rename from tests/Predis/Command/StringDecrementByTest.php rename to tests/Predis/Command/Redis/StringDecrementByTest.php index 4e69de02..57b04c6b 100644 --- a/tests/Predis/Command/StringDecrementByTest.php +++ b/tests/Predis/Command/Redis/StringDecrementByTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringDecrementByTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringDecrementBy'; + return 'Predis\Command\Redis\StringDecrementBy'; } /** diff --git a/tests/Predis/Command/StringDecrementTest.php b/tests/Predis/Command/Redis/StringDecrementTest.php similarity index 96% rename from tests/Predis/Command/StringDecrementTest.php rename to tests/Predis/Command/Redis/StringDecrementTest.php index 06a8b430..8fc8eef1 100644 --- a/tests/Predis/Command/StringDecrementTest.php +++ b/tests/Predis/Command/Redis/StringDecrementTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringDecrementTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringDecrement'; + return 'Predis\Command\Redis\StringDecrement'; } /** diff --git a/tests/Predis/Command/StringGetBitTest.php b/tests/Predis/Command/Redis/StringGetBitTest.php similarity index 97% rename from tests/Predis/Command/StringGetBitTest.php rename to tests/Predis/Command/Redis/StringGetBitTest.php index 64a85f16..8fc75773 100644 --- a/tests/Predis/Command/StringGetBitTest.php +++ b/tests/Predis/Command/Redis/StringGetBitTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringGetBitTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringGetBit'; + return 'Predis\Command\Redis\StringGetBit'; } /** diff --git a/tests/Predis/Command/StringGetMultipleTest.php b/tests/Predis/Command/Redis/StringGetMultipleTest.php similarity index 96% rename from tests/Predis/Command/StringGetMultipleTest.php rename to tests/Predis/Command/Redis/StringGetMultipleTest.php index 412dfad3..d4435612 100644 --- a/tests/Predis/Command/StringGetMultipleTest.php +++ b/tests/Predis/Command/Redis/StringGetMultipleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringGetMultipleTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringGetMultiple'; + return 'Predis\Command\Redis\StringGetMultiple'; } /** diff --git a/tests/Predis/Command/StringGetRangeTest.php b/tests/Predis/Command/Redis/StringGetRangeTest.php similarity index 96% rename from tests/Predis/Command/StringGetRangeTest.php rename to tests/Predis/Command/Redis/StringGetRangeTest.php index f72ee24a..231685c2 100644 --- a/tests/Predis/Command/StringGetRangeTest.php +++ b/tests/Predis/Command/Redis/StringGetRangeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringGetRangeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringGetRange'; + return 'Predis\Command\Redis\StringGetRange'; } /** diff --git a/tests/Predis/Command/StringGetSetTest.php b/tests/Predis/Command/Redis/StringGetSetTest.php similarity index 95% rename from tests/Predis/Command/StringGetSetTest.php rename to tests/Predis/Command/Redis/StringGetSetTest.php index defe243a..1bc36bbf 100644 --- a/tests/Predis/Command/StringGetSetTest.php +++ b/tests/Predis/Command/Redis/StringGetSetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringGetSetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringGetSet'; + return 'Predis\Command\Redis\StringGetSet'; } /** diff --git a/tests/Predis/Command/StringGetTest.php b/tests/Predis/Command/Redis/StringGetTest.php similarity index 96% rename from tests/Predis/Command/StringGetTest.php rename to tests/Predis/Command/Redis/StringGetTest.php index 0e99b4d0..3a5d677e 100644 --- a/tests/Predis/Command/StringGetTest.php +++ b/tests/Predis/Command/Redis/StringGetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringGetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringGet'; + return 'Predis\Command\Redis\StringGet'; } /** diff --git a/tests/Predis/Command/StringIncrementByFloatTest.php b/tests/Predis/Command/Redis/StringIncrementByFloatTest.php similarity index 96% rename from tests/Predis/Command/StringIncrementByFloatTest.php rename to tests/Predis/Command/Redis/StringIncrementByFloatTest.php index 8416615d..e3f45f5c 100644 --- a/tests/Predis/Command/StringIncrementByFloatTest.php +++ b/tests/Predis/Command/Redis/StringIncrementByFloatTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringIncrementByFloatTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringIncrementByFloat'; + return 'Predis\Command\Redis\StringIncrementByFloat'; } /** diff --git a/tests/Predis/Command/StringIncrementByTest.php b/tests/Predis/Command/Redis/StringIncrementByTest.php similarity index 96% rename from tests/Predis/Command/StringIncrementByTest.php rename to tests/Predis/Command/Redis/StringIncrementByTest.php index 78a156fc..d4028083 100644 --- a/tests/Predis/Command/StringIncrementByTest.php +++ b/tests/Predis/Command/Redis/StringIncrementByTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringIncrementByTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringIncrementBy'; + return 'Predis\Command\Redis\StringIncrementBy'; } /** diff --git a/tests/Predis/Command/StringIncrementTest.php b/tests/Predis/Command/Redis/StringIncrementTest.php similarity index 95% rename from tests/Predis/Command/StringIncrementTest.php rename to tests/Predis/Command/Redis/StringIncrementTest.php index 8a87c132..57c44640 100644 --- a/tests/Predis/Command/StringIncrementTest.php +++ b/tests/Predis/Command/Redis/StringIncrementTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringIncrementTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringIncrement'; + return 'Predis\Command\Redis\StringIncrement'; } /** diff --git a/tests/Predis/Command/StringPreciseSetExpireTest.php b/tests/Predis/Command/Redis/StringPreciseSetExpireTest.php similarity index 96% rename from tests/Predis/Command/StringPreciseSetExpireTest.php rename to tests/Predis/Command/Redis/StringPreciseSetExpireTest.php index d09df63b..fd4821a6 100644 --- a/tests/Predis/Command/StringPreciseSetExpireTest.php +++ b/tests/Predis/Command/Redis/StringPreciseSetExpireTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringPreciseSetExpireTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringPreciseSetExpire'; + return 'Predis\Command\Redis\StringPreciseSetExpire'; } /** diff --git a/tests/Predis/Command/StringSetBitTest.php b/tests/Predis/Command/Redis/StringSetBitTest.php similarity index 97% rename from tests/Predis/Command/StringSetBitTest.php rename to tests/Predis/Command/Redis/StringSetBitTest.php index fc1d93c6..97e353e1 100644 --- a/tests/Predis/Command/StringSetBitTest.php +++ b/tests/Predis/Command/Redis/StringSetBitTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetBitTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetBit'; + return 'Predis\Command\Redis\StringSetBit'; } /** diff --git a/tests/Predis/Command/StringSetExpireTest.php b/tests/Predis/Command/Redis/StringSetExpireTest.php similarity index 96% rename from tests/Predis/Command/StringSetExpireTest.php rename to tests/Predis/Command/Redis/StringSetExpireTest.php index f69226ba..1f28c705 100644 --- a/tests/Predis/Command/StringSetExpireTest.php +++ b/tests/Predis/Command/Redis/StringSetExpireTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetExpireTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetExpire'; + return 'Predis\Command\Redis\StringSetExpire'; } /** diff --git a/tests/Predis/Command/StringSetMultiplePreserveTest.php b/tests/Predis/Command/Redis/StringSetMultiplePreserveTest.php similarity index 95% rename from tests/Predis/Command/StringSetMultiplePreserveTest.php rename to tests/Predis/Command/Redis/StringSetMultiplePreserveTest.php index e0d1765b..3bcca765 100644 --- a/tests/Predis/Command/StringSetMultiplePreserveTest.php +++ b/tests/Predis/Command/Redis/StringSetMultiplePreserveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetMultiplePreserveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetMultiplePreserve'; + return 'Predis\Command\Redis\StringSetMultiplePreserve'; } /** diff --git a/tests/Predis/Command/StringSetMultipleTest.php b/tests/Predis/Command/Redis/StringSetMultipleTest.php similarity index 95% rename from tests/Predis/Command/StringSetMultipleTest.php rename to tests/Predis/Command/Redis/StringSetMultipleTest.php index 4ba3c84a..726b3862 100644 --- a/tests/Predis/Command/StringSetMultipleTest.php +++ b/tests/Predis/Command/Redis/StringSetMultipleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetMultipleTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetMultiple'; + return 'Predis\Command\Redis\StringSetMultiple'; } /** diff --git a/tests/Predis/Command/StringSetPreserveTest.php b/tests/Predis/Command/Redis/StringSetPreserveTest.php similarity index 94% rename from tests/Predis/Command/StringSetPreserveTest.php rename to tests/Predis/Command/Redis/StringSetPreserveTest.php index c5c961a6..22fc34ea 100644 --- a/tests/Predis/Command/StringSetPreserveTest.php +++ b/tests/Predis/Command/Redis/StringSetPreserveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetPreserveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetPreserve'; + return 'Predis\Command\Redis\StringSetPreserve'; } /** diff --git a/tests/Predis/Command/StringSetRangeTest.php b/tests/Predis/Command/Redis/StringSetRangeTest.php similarity index 97% rename from tests/Predis/Command/StringSetRangeTest.php rename to tests/Predis/Command/Redis/StringSetRangeTest.php index e76a268d..01ff35ae 100644 --- a/tests/Predis/Command/StringSetRangeTest.php +++ b/tests/Predis/Command/Redis/StringSetRangeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetRangeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSetRange'; + return 'Predis\Command\Redis\StringSetRange'; } /** diff --git a/tests/Predis/Command/StringSetTest.php b/tests/Predis/Command/Redis/StringSetTest.php similarity index 97% rename from tests/Predis/Command/StringSetTest.php rename to tests/Predis/Command/Redis/StringSetTest.php index 348728ec..d8337a91 100644 --- a/tests/Predis/Command/StringSetTest.php +++ b/tests/Predis/Command/Redis/StringSetTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringSetTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSet'; + return 'Predis\Command\Redis\StringSet'; } /** diff --git a/tests/Predis/Command/StringStrlenTest.php b/tests/Predis/Command/Redis/StringStrlenTest.php similarity index 95% rename from tests/Predis/Command/StringStrlenTest.php rename to tests/Predis/Command/Redis/StringStrlenTest.php index 7c5c0fe0..5da761c5 100644 --- a/tests/Predis/Command/StringStrlenTest.php +++ b/tests/Predis/Command/Redis/StringStrlenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class StringStrlenTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringStrlen'; + return 'Predis\Command\Redis\StringStrlen'; } /** diff --git a/tests/Predis/Command/StringSubstrTest.php b/tests/Predis/Command/Redis/StringSubstrTest.php similarity index 93% rename from tests/Predis/Command/StringSubstrTest.php rename to tests/Predis/Command/Redis/StringSubstrTest.php index cdbff58a..e3a4850e 100644 --- a/tests/Predis/Command/StringSubstrTest.php +++ b/tests/Predis/Command/Redis/StringSubstrTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * SUBSTR is actually the old name of GETRANGE in version of Redis <= 2.0. @@ -26,7 +26,7 @@ class StringSubstrTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\StringSubstr'; + return 'Predis\Command\Redis\StringSubstr'; } /** diff --git a/tests/Predis/Command/TransactionDiscardTest.php b/tests/Predis/Command/Redis/TransactionDiscardTest.php similarity index 94% rename from tests/Predis/Command/TransactionDiscardTest.php rename to tests/Predis/Command/Redis/TransactionDiscardTest.php index a661e4de..2e22af0e 100644 --- a/tests/Predis/Command/TransactionDiscardTest.php +++ b/tests/Predis/Command/Redis/TransactionDiscardTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class TransactionDiscardTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\TransactionDiscard'; + return 'Predis\Command\Redis\TransactionDiscard'; } /** diff --git a/tests/Predis/Command/TransactionExecTest.php b/tests/Predis/Command/Redis/TransactionExecTest.php similarity index 96% rename from tests/Predis/Command/TransactionExecTest.php rename to tests/Predis/Command/Redis/TransactionExecTest.php index 09b3c2e1..92540b06 100644 --- a/tests/Predis/Command/TransactionExecTest.php +++ b/tests/Predis/Command/Redis/TransactionExecTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class TransactionExecTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\TransactionExec'; + return 'Predis\Command\Redis\TransactionExec'; } /** diff --git a/tests/Predis/Command/TransactionMultiTest.php b/tests/Predis/Command/Redis/TransactionMultiTest.php similarity index 95% rename from tests/Predis/Command/TransactionMultiTest.php rename to tests/Predis/Command/Redis/TransactionMultiTest.php index db075181..331dd21d 100644 --- a/tests/Predis/Command/TransactionMultiTest.php +++ b/tests/Predis/Command/Redis/TransactionMultiTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class TransactionMultiTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\TransactionMulti'; + return 'Predis\Command\Redis\TransactionMulti'; } /** diff --git a/tests/Predis/Command/TransactionUnwatchTest.php b/tests/Predis/Command/Redis/TransactionUnwatchTest.php similarity index 94% rename from tests/Predis/Command/TransactionUnwatchTest.php rename to tests/Predis/Command/Redis/TransactionUnwatchTest.php index 6aa26aa0..50465628 100644 --- a/tests/Predis/Command/TransactionUnwatchTest.php +++ b/tests/Predis/Command/Redis/TransactionUnwatchTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class TransactionUnwatchTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\TransactionUnwatch'; + return 'Predis\Command\Redis\TransactionUnwatch'; } /** diff --git a/tests/Predis/Command/TransactionWatchTest.php b/tests/Predis/Command/Redis/TransactionWatchTest.php similarity index 97% rename from tests/Predis/Command/TransactionWatchTest.php rename to tests/Predis/Command/Redis/TransactionWatchTest.php index 132d11ae..7e1af0a5 100644 --- a/tests/Predis/Command/TransactionWatchTest.php +++ b/tests/Predis/Command/Redis/TransactionWatchTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class TransactionWatchTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\TransactionWatch'; + return 'Predis\Command\Redis\TransactionWatch'; } /** diff --git a/tests/Predis/Command/ZSetAddTest.php b/tests/Predis/Command/Redis/ZSetAddTest.php similarity index 98% rename from tests/Predis/Command/ZSetAddTest.php rename to tests/Predis/Command/Redis/ZSetAddTest.php index 05bd6833..3f34e576 100644 --- a/tests/Predis/Command/ZSetAddTest.php +++ b/tests/Predis/Command/Redis/ZSetAddTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetAddTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetAdd'; + return 'Predis\Command\Redis\ZSetAdd'; } /** diff --git a/tests/Predis/Command/ZSetCardinalityTest.php b/tests/Predis/Command/Redis/ZSetCardinalityTest.php similarity index 95% rename from tests/Predis/Command/ZSetCardinalityTest.php rename to tests/Predis/Command/Redis/ZSetCardinalityTest.php index ea6e8a00..c298baae 100644 --- a/tests/Predis/Command/ZSetCardinalityTest.php +++ b/tests/Predis/Command/Redis/ZSetCardinalityTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetCardinalityTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetCardinality'; + return 'Predis\Command\Redis\ZSetCardinality'; } /** diff --git a/tests/Predis/Command/ZSetCountTest.php b/tests/Predis/Command/Redis/ZSetCountTest.php similarity index 97% rename from tests/Predis/Command/ZSetCountTest.php rename to tests/Predis/Command/Redis/ZSetCountTest.php index fc5b0f32..5375b860 100644 --- a/tests/Predis/Command/ZSetCountTest.php +++ b/tests/Predis/Command/Redis/ZSetCountTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetCountTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetCount'; + return 'Predis\Command\Redis\ZSetCount'; } /** diff --git a/tests/Predis/Command/ZSetIncrementByTest.php b/tests/Predis/Command/Redis/ZSetIncrementByTest.php similarity index 95% rename from tests/Predis/Command/ZSetIncrementByTest.php rename to tests/Predis/Command/Redis/ZSetIncrementByTest.php index ee45af7d..0b969e9e 100644 --- a/tests/Predis/Command/ZSetIncrementByTest.php +++ b/tests/Predis/Command/Redis/ZSetIncrementByTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetIncrementByTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetIncrementBy'; + return 'Predis\Command\Redis\ZSetIncrementBy'; } /** diff --git a/tests/Predis/Command/ZSetIntersectionStoreTest.php b/tests/Predis/Command/Redis/ZSetIntersectionStoreTest.php similarity index 98% rename from tests/Predis/Command/ZSetIntersectionStoreTest.php rename to tests/Predis/Command/Redis/ZSetIntersectionStoreTest.php index 496ff938..249d3269 100644 --- a/tests/Predis/Command/ZSetIntersectionStoreTest.php +++ b/tests/Predis/Command/Redis/ZSetIntersectionStoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetIntersectionStoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetIntersectionStore'; + return 'Predis\Command\Redis\ZSetIntersectionStore'; } /** diff --git a/tests/Predis/Command/ZSetLexCountTest.php b/tests/Predis/Command/Redis/ZSetLexCountTest.php similarity index 97% rename from tests/Predis/Command/ZSetLexCountTest.php rename to tests/Predis/Command/Redis/ZSetLexCountTest.php index 6acba8ac..d56ee964 100644 --- a/tests/Predis/Command/ZSetLexCountTest.php +++ b/tests/Predis/Command/Redis/ZSetLexCountTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetLexCountTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetLexCount'; + return 'Predis\Command\Redis\ZSetLexCount'; } /** diff --git a/tests/Predis/Command/ZSetRangeByLexTest.php b/tests/Predis/Command/Redis/ZSetRangeByLexTest.php similarity index 98% rename from tests/Predis/Command/ZSetRangeByLexTest.php rename to tests/Predis/Command/Redis/ZSetRangeByLexTest.php index 3c7ebf02..267c9ce8 100644 --- a/tests/Predis/Command/ZSetRangeByLexTest.php +++ b/tests/Predis/Command/Redis/ZSetRangeByLexTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRangeByLexTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRangeByLex'; + return 'Predis\Command\Redis\ZSetRangeByLex'; } /** diff --git a/tests/Predis/Command/ZSetRangeByScoreTest.php b/tests/Predis/Command/Redis/ZSetRangeByScoreTest.php similarity index 98% rename from tests/Predis/Command/ZSetRangeByScoreTest.php rename to tests/Predis/Command/Redis/ZSetRangeByScoreTest.php index 08e5a193..d4bf7a33 100644 --- a/tests/Predis/Command/ZSetRangeByScoreTest.php +++ b/tests/Predis/Command/Redis/ZSetRangeByScoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRangeByScoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRangeByScore'; + return 'Predis\Command\Redis\ZSetRangeByScore'; } /** diff --git a/tests/Predis/Command/ZSetRangeTest.php b/tests/Predis/Command/Redis/ZSetRangeTest.php similarity index 98% rename from tests/Predis/Command/ZSetRangeTest.php rename to tests/Predis/Command/Redis/ZSetRangeTest.php index 2ae484dc..816b9b20 100644 --- a/tests/Predis/Command/ZSetRangeTest.php +++ b/tests/Predis/Command/Redis/ZSetRangeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRangeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRange'; + return 'Predis\Command\Redis\ZSetRange'; } /** diff --git a/tests/Predis/Command/ZSetRankTest.php b/tests/Predis/Command/Redis/ZSetRankTest.php similarity index 95% rename from tests/Predis/Command/ZSetRankTest.php rename to tests/Predis/Command/Redis/ZSetRankTest.php index 2ab26710..020b57e6 100644 --- a/tests/Predis/Command/ZSetRankTest.php +++ b/tests/Predis/Command/Redis/ZSetRankTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRankTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRank'; + return 'Predis\Command\Redis\ZSetRank'; } /** diff --git a/tests/Predis/Command/ZSetRemoveRangeByLexTest.php b/tests/Predis/Command/Redis/ZSetRemoveRangeByLexTest.php similarity index 97% rename from tests/Predis/Command/ZSetRemoveRangeByLexTest.php rename to tests/Predis/Command/Redis/ZSetRemoveRangeByLexTest.php index a310f466..96ce05e6 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByLexTest.php +++ b/tests/Predis/Command/Redis/ZSetRemoveRangeByLexTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRemoveRangeByLexTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRemoveRangeByLex'; + return 'Predis\Command\Redis\ZSetRemoveRangeByLex'; } /** diff --git a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php b/tests/Predis/Command/Redis/ZSetRemoveRangeByRankTest.php similarity index 96% rename from tests/Predis/Command/ZSetRemoveRangeByRankTest.php rename to tests/Predis/Command/Redis/ZSetRemoveRangeByRankTest.php index 9ab3df45..e8db447c 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php +++ b/tests/Predis/Command/Redis/ZSetRemoveRangeByRankTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRemoveRangeByRankTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRemoveRangeByRank'; + return 'Predis\Command\Redis\ZSetRemoveRangeByRank'; } /** diff --git a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php b/tests/Predis/Command/Redis/ZSetRemoveRangeByScoreTest.php similarity index 96% rename from tests/Predis/Command/ZSetRemoveRangeByScoreTest.php rename to tests/Predis/Command/Redis/ZSetRemoveRangeByScoreTest.php index f38900b6..bcbb61b3 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php +++ b/tests/Predis/Command/Redis/ZSetRemoveRangeByScoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRemoveRangeByScoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRemoveRangeByScore'; + return 'Predis\Command\Redis\ZSetRemoveRangeByScore'; } /** diff --git a/tests/Predis/Command/ZSetRemoveTest.php b/tests/Predis/Command/Redis/ZSetRemoveTest.php similarity index 95% rename from tests/Predis/Command/ZSetRemoveTest.php rename to tests/Predis/Command/Redis/ZSetRemoveTest.php index 1044be31..20e94664 100644 --- a/tests/Predis/Command/ZSetRemoveTest.php +++ b/tests/Predis/Command/Redis/ZSetRemoveTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetRemoveTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetRemove'; + return 'Predis\Command\Redis\ZSetRemove'; } /** diff --git a/tests/Predis/Command/ZSetReverseRangeByLexTest.php b/tests/Predis/Command/Redis/ZSetReverseRangeByLexTest.php similarity index 98% rename from tests/Predis/Command/ZSetReverseRangeByLexTest.php rename to tests/Predis/Command/Redis/ZSetReverseRangeByLexTest.php index 3a0e0f82..eb5dbfa4 100644 --- a/tests/Predis/Command/ZSetReverseRangeByLexTest.php +++ b/tests/Predis/Command/Redis/ZSetReverseRangeByLexTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetReverseRangeByLexTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetReverseRangeByLex'; + return 'Predis\Command\Redis\ZSetReverseRangeByLex'; } /** diff --git a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php b/tests/Predis/Command/Redis/ZSetReverseRangeByScoreTest.php similarity index 98% rename from tests/Predis/Command/ZSetReverseRangeByScoreTest.php rename to tests/Predis/Command/Redis/ZSetReverseRangeByScoreTest.php index 6eb7cf70..b1d61782 100644 --- a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php +++ b/tests/Predis/Command/Redis/ZSetReverseRangeByScoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetReverseRangeByScoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetReverseRangeByScore'; + return 'Predis\Command\Redis\ZSetReverseRangeByScore'; } /** diff --git a/tests/Predis/Command/ZSetReverseRangeTest.php b/tests/Predis/Command/Redis/ZSetReverseRangeTest.php similarity index 98% rename from tests/Predis/Command/ZSetReverseRangeTest.php rename to tests/Predis/Command/Redis/ZSetReverseRangeTest.php index 50c2e5ae..62b04508 100644 --- a/tests/Predis/Command/ZSetReverseRangeTest.php +++ b/tests/Predis/Command/Redis/ZSetReverseRangeTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetReverseRangeTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetReverseRange'; + return 'Predis\Command\Redis\ZSetReverseRange'; } /** diff --git a/tests/Predis/Command/ZSetReverseRankTest.php b/tests/Predis/Command/Redis/ZSetReverseRankTest.php similarity index 95% rename from tests/Predis/Command/ZSetReverseRankTest.php rename to tests/Predis/Command/Redis/ZSetReverseRankTest.php index 9f9865b4..6ec19a01 100644 --- a/tests/Predis/Command/ZSetReverseRankTest.php +++ b/tests/Predis/Command/Redis/ZSetReverseRankTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetReverseRankTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetReverseRank'; + return 'Predis\Command\Redis\ZSetReverseRank'; } /** diff --git a/tests/Predis/Command/ZSetScanTest.php b/tests/Predis/Command/Redis/ZSetScanTest.php similarity index 97% rename from tests/Predis/Command/ZSetScanTest.php rename to tests/Predis/Command/Redis/ZSetScanTest.php index 385cfbee..10d48f30 100644 --- a/tests/Predis/Command/ZSetScanTest.php +++ b/tests/Predis/Command/Redis/ZSetScanTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetScanTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetScan'; + return 'Predis\Command\Redis\ZSetScan'; } /** diff --git a/tests/Predis/Command/ZSetScoreTest.php b/tests/Predis/Command/Redis/ZSetScoreTest.php similarity index 95% rename from tests/Predis/Command/ZSetScoreTest.php rename to tests/Predis/Command/Redis/ZSetScoreTest.php index dc26dbff..1056d812 100644 --- a/tests/Predis/Command/ZSetScoreTest.php +++ b/tests/Predis/Command/Redis/ZSetScoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetScoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetScore'; + return 'Predis\Command\Redis\ZSetScore'; } /** diff --git a/tests/Predis/Command/ZSetUnionStoreTest.php b/tests/Predis/Command/Redis/ZSetUnionStoreTest.php similarity index 98% rename from tests/Predis/Command/ZSetUnionStoreTest.php rename to tests/Predis/Command/Redis/ZSetUnionStoreTest.php index 895c38b6..1301fdb2 100644 --- a/tests/Predis/Command/ZSetUnionStoreTest.php +++ b/tests/Predis/Command/Redis/ZSetUnionStoreTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Predis\Command; +namespace Predis\Command\Redis; /** * @group commands @@ -22,7 +22,7 @@ class ZSetUnionStoreTest extends PredisCommandTestCase */ protected function getExpectedCommand() { - return 'Predis\Command\ZSetUnionStore'; + return 'Predis\Command\Redis\ZSetUnionStore'; } /** diff --git a/tests/Predis/Pipeline/AtomicTest.php b/tests/Predis/Pipeline/AtomicTest.php index 36dc4a96..c5bf814b 100644 --- a/tests/Predis/Pipeline/AtomicTest.php +++ b/tests/Predis/Pipeline/AtomicTest.php @@ -87,7 +87,7 @@ class AtomicTest extends PredisTestCase ->will($this->onConsecutiveCalls($queued, $queued, $error)); $connection->expects($this->at(7)) ->method('executeCommand') - ->with($this->isInstanceOf('Predis\Command\TransactionDiscard')); + ->with($this->isRedisCommand('DISCARD')); $pipeline = new Atomic(new Client($connection)); diff --git a/tests/README.md b/tests/README.md index 97398421..ed771a1f 100644 --- a/tests/README.md +++ b/tests/README.md @@ -70,8 +70,9 @@ $ phpunit --exclude-group slow We also provide an helper script in the `bin` directory that can be used to automatically generate a file with the scheleton of a test case to test a Redis command by specifying the name of the class -in the `Predis\Command` namespace (only classes in this namespace are considered valid). For example - to generate a test case for `SET` (represented by the `Predis\Command\StringSet` class): +in the `Predis\Command\Redis` namespace (only classes in this namespace are considered valid). +For example to generate a test case for `SET` (represented by the `Predis\Command\Redis\StringSet` +class): ```bash $ ./bin/create-command-test --class=StringSet