Browse Source

Move commands classes in Predis\Command\Redis.

Daniele Alessandri 8 years ago
parent
commit
6e3f301588
100 changed files with 305 additions and 102 deletions
  1. 7 0
      CHANGELOG.md
  2. 4 4
      bin/create-command-test
  3. 3 1
      src/Command/Redis/ConnectionAuth.php
  4. 3 1
      src/Command/Redis/ConnectionEcho.php
  5. 3 1
      src/Command/Redis/ConnectionPing.php
  6. 3 1
      src/Command/Redis/ConnectionQuit.php
  7. 3 1
      src/Command/Redis/ConnectionSelect.php
  8. 3 1
      src/Command/Redis/GeospatialGeoAdd.php
  9. 3 1
      src/Command/Redis/GeospatialGeoDist.php
  10. 3 1
      src/Command/Redis/GeospatialGeoHash.php
  11. 3 1
      src/Command/Redis/GeospatialGeoPos.php
  12. 3 1
      src/Command/Redis/GeospatialGeoRadius.php
  13. 3 1
      src/Command/Redis/GeospatialGeoRadiusByMember.php
  14. 3 1
      src/Command/Redis/HashDelete.php
  15. 3 1
      src/Command/Redis/HashExists.php
  16. 3 1
      src/Command/Redis/HashGet.php
  17. 3 1
      src/Command/Redis/HashGetAll.php
  18. 3 1
      src/Command/Redis/HashGetMultiple.php
  19. 3 1
      src/Command/Redis/HashIncrementBy.php
  20. 3 1
      src/Command/Redis/HashIncrementByFloat.php
  21. 3 1
      src/Command/Redis/HashKeys.php
  22. 3 1
      src/Command/Redis/HashLength.php
  23. 3 1
      src/Command/Redis/HashScan.php
  24. 3 1
      src/Command/Redis/HashSet.php
  25. 3 1
      src/Command/Redis/HashSetMultiple.php
  26. 3 1
      src/Command/Redis/HashSetPreserve.php
  27. 3 1
      src/Command/Redis/HashStringLength.php
  28. 3 1
      src/Command/Redis/HashValues.php
  29. 3 1
      src/Command/Redis/HyperLogLogAdd.php
  30. 3 1
      src/Command/Redis/HyperLogLogCount.php
  31. 3 1
      src/Command/Redis/HyperLogLogMerge.php
  32. 3 1
      src/Command/Redis/KeyDelete.php
  33. 3 1
      src/Command/Redis/KeyDump.php
  34. 3 1
      src/Command/Redis/KeyExists.php
  35. 3 1
      src/Command/Redis/KeyExpire.php
  36. 3 1
      src/Command/Redis/KeyExpireAt.php
  37. 3 1
      src/Command/Redis/KeyKeys.php
  38. 3 1
      src/Command/Redis/KeyMigrate.php
  39. 3 1
      src/Command/Redis/KeyMove.php
  40. 3 1
      src/Command/Redis/KeyPersist.php
  41. 3 1
      src/Command/Redis/KeyPreciseExpire.php
  42. 3 1
      src/Command/Redis/KeyPreciseExpireAt.php
  43. 3 1
      src/Command/Redis/KeyPreciseTimeToLive.php
  44. 3 1
      src/Command/Redis/KeyRandom.php
  45. 3 1
      src/Command/Redis/KeyRename.php
  46. 3 1
      src/Command/Redis/KeyRenamePreserve.php
  47. 3 1
      src/Command/Redis/KeyRestore.php
  48. 3 1
      src/Command/Redis/KeyScan.php
  49. 3 1
      src/Command/Redis/KeySort.php
  50. 3 1
      src/Command/Redis/KeyTimeToLive.php
  51. 3 1
      src/Command/Redis/KeyType.php
  52. 3 1
      src/Command/Redis/ListIndex.php
  53. 3 1
      src/Command/Redis/ListInsert.php
  54. 3 1
      src/Command/Redis/ListLength.php
  55. 3 1
      src/Command/Redis/ListPopFirst.php
  56. 3 1
      src/Command/Redis/ListPopFirstBlocking.php
  57. 3 1
      src/Command/Redis/ListPopLast.php
  58. 3 1
      src/Command/Redis/ListPopLastBlocking.php
  59. 3 1
      src/Command/Redis/ListPopLastPushHead.php
  60. 3 1
      src/Command/Redis/ListPopLastPushHeadBlocking.php
  61. 3 1
      src/Command/Redis/ListPushHead.php
  62. 3 1
      src/Command/Redis/ListPushHeadX.php
  63. 3 1
      src/Command/Redis/ListPushTail.php
  64. 3 1
      src/Command/Redis/ListPushTailX.php
  65. 3 1
      src/Command/Redis/ListRange.php
  66. 3 1
      src/Command/Redis/ListRemove.php
  67. 3 1
      src/Command/Redis/ListSet.php
  68. 3 1
      src/Command/Redis/ListTrim.php
  69. 3 1
      src/Command/Redis/PubSubPublish.php
  70. 3 1
      src/Command/Redis/PubSubPubsub.php
  71. 3 1
      src/Command/Redis/PubSubSubscribe.php
  72. 3 1
      src/Command/Redis/PubSubSubscribeByPattern.php
  73. 3 1
      src/Command/Redis/PubSubUnsubscribe.php
  74. 3 1
      src/Command/Redis/PubSubUnsubscribeByPattern.php
  75. 3 1
      src/Command/Redis/ServerBackgroundRewriteAOF.php
  76. 3 1
      src/Command/Redis/ServerBackgroundSave.php
  77. 3 1
      src/Command/Redis/ServerClient.php
  78. 3 1
      src/Command/Redis/ServerCommand.php
  79. 3 1
      src/Command/Redis/ServerConfig.php
  80. 3 1
      src/Command/Redis/ServerDatabaseSize.php
  81. 3 1
      src/Command/Redis/ServerEval.php
  82. 3 1
      src/Command/Redis/ServerEvalSHA.php
  83. 3 1
      src/Command/Redis/ServerFlushAll.php
  84. 3 1
      src/Command/Redis/ServerFlushDatabase.php
  85. 3 1
      src/Command/Redis/ServerInfo.php
  86. 3 1
      src/Command/Redis/ServerInfoV26x.php
  87. 3 1
      src/Command/Redis/ServerLastSave.php
  88. 3 1
      src/Command/Redis/ServerMonitor.php
  89. 3 1
      src/Command/Redis/ServerObject.php
  90. 3 1
      src/Command/Redis/ServerSave.php
  91. 3 1
      src/Command/Redis/ServerScript.php
  92. 3 1
      src/Command/Redis/ServerSentinel.php
  93. 3 1
      src/Command/Redis/ServerShutdown.php
  94. 3 1
      src/Command/Redis/ServerSlaveOf.php
  95. 3 1
      src/Command/Redis/ServerSlowlog.php
  96. 3 1
      src/Command/Redis/ServerTime.php
  97. 3 1
      src/Command/Redis/SetAdd.php
  98. 3 1
      src/Command/Redis/SetCardinality.php
  99. 3 1
      src/Command/Redis/SetDifference.php
  100. 3 1
      src/Command/Redis/SetDifferenceStore.php

+ 7 - 0
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)
 ================================================================================
 

+ 4 - 4
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

+ 3 - 1
src/Command/ConnectionAuth.php → 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

+ 3 - 1
src/Command/ConnectionEcho.php → 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

+ 3 - 1
src/Command/ConnectionPing.php → 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

+ 3 - 1
src/Command/ConnectionQuit.php → 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

+ 3 - 1
src/Command/ConnectionSelect.php → 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

+ 3 - 1
src/Command/GeospatialGeoAdd.php → 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

+ 3 - 1
src/Command/GeospatialGeoDist.php → 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

+ 3 - 1
src/Command/GeospatialGeoHash.php → 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

+ 3 - 1
src/Command/GeospatialGeoPos.php → 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

+ 3 - 1
src/Command/GeospatialGeoRadius.php → 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

+ 3 - 1
src/Command/GeospatialGeoRadiusByMember.php → 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

+ 3 - 1
src/Command/HashDelete.php → 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

+ 3 - 1
src/Command/HashExists.php → 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

+ 3 - 1
src/Command/HashGet.php → 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

+ 3 - 1
src/Command/HashGetAll.php → 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

+ 3 - 1
src/Command/HashGetMultiple.php → 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

+ 3 - 1
src/Command/HashIncrementBy.php → 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

+ 3 - 1
src/Command/HashIncrementByFloat.php → 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

+ 3 - 1
src/Command/HashKeys.php → 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

+ 3 - 1
src/Command/HashLength.php → 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

+ 3 - 1
src/Command/HashScan.php → 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

+ 3 - 1
src/Command/HashSet.php → 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

+ 3 - 1
src/Command/HashSetMultiple.php → 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

+ 3 - 1
src/Command/HashSetPreserve.php → 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

+ 3 - 1
src/Command/HashStringLength.php → 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

+ 3 - 1
src/Command/HashValues.php → 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

+ 3 - 1
src/Command/HyperLogLogAdd.php → 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

+ 3 - 1
src/Command/HyperLogLogCount.php → 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

+ 3 - 1
src/Command/HyperLogLogMerge.php → 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

+ 3 - 1
src/Command/KeyDelete.php → 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

+ 3 - 1
src/Command/KeyDump.php → 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

+ 3 - 1
src/Command/KeyExists.php → 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

+ 3 - 1
src/Command/KeyExpire.php → 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

+ 3 - 1
src/Command/KeyExpireAt.php → 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

+ 3 - 1
src/Command/KeyKeys.php → 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

+ 3 - 1
src/Command/KeyMigrate.php → 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

+ 3 - 1
src/Command/KeyMove.php → 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

+ 3 - 1
src/Command/KeyPersist.php → 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

+ 3 - 1
src/Command/KeyPreciseExpire.php → 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

+ 3 - 1
src/Command/KeyPreciseExpireAt.php → 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

+ 3 - 1
src/Command/KeyPreciseTimeToLive.php → 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

+ 3 - 1
src/Command/KeyRandom.php → 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

+ 3 - 1
src/Command/KeyRename.php → 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

+ 3 - 1
src/Command/KeyRenamePreserve.php → 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

+ 3 - 1
src/Command/KeyRestore.php → 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

+ 3 - 1
src/Command/KeyScan.php → 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

+ 3 - 1
src/Command/KeySort.php → 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

+ 3 - 1
src/Command/KeyTimeToLive.php → 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

+ 3 - 1
src/Command/KeyType.php → 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

+ 3 - 1
src/Command/ListIndex.php → 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

+ 3 - 1
src/Command/ListInsert.php → 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

+ 3 - 1
src/Command/ListLength.php → 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

+ 3 - 1
src/Command/ListPopFirst.php → 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

+ 3 - 1
src/Command/ListPopFirstBlocking.php → 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

+ 3 - 1
src/Command/ListPopLast.php → 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

+ 3 - 1
src/Command/ListPopLastBlocking.php → 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

+ 3 - 1
src/Command/ListPopLastPushHead.php → 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

+ 3 - 1
src/Command/ListPopLastPushHeadBlocking.php → 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

+ 3 - 1
src/Command/ListPushHead.php → 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

+ 3 - 1
src/Command/ListPushHeadX.php → 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

+ 3 - 1
src/Command/ListPushTail.php → 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

+ 3 - 1
src/Command/ListPushTailX.php → 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

+ 3 - 1
src/Command/ListRange.php → 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

+ 3 - 1
src/Command/ListRemove.php → 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

+ 3 - 1
src/Command/ListSet.php → 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

+ 3 - 1
src/Command/ListTrim.php → 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

+ 3 - 1
src/Command/PubSubPublish.php → 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

+ 3 - 1
src/Command/PubSubPubsub.php → 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

+ 3 - 1
src/Command/PubSubSubscribe.php → 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

+ 3 - 1
src/Command/PubSubSubscribeByPattern.php → 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

+ 3 - 1
src/Command/PubSubUnsubscribe.php → 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

+ 3 - 1
src/Command/PubSubUnsubscribeByPattern.php → 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

+ 3 - 1
src/Command/ServerBackgroundRewriteAOF.php → 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

+ 3 - 1
src/Command/ServerBackgroundSave.php → 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

+ 3 - 1
src/Command/ServerClient.php → 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

+ 3 - 1
src/Command/ServerCommand.php → 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

+ 3 - 1
src/Command/ServerConfig.php → 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

+ 3 - 1
src/Command/ServerDatabaseSize.php → 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

+ 3 - 1
src/Command/ServerEval.php → 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

+ 3 - 1
src/Command/ServerEvalSHA.php → 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

+ 3 - 1
src/Command/ServerFlushAll.php → 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

+ 3 - 1
src/Command/ServerFlushDatabase.php → 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

+ 3 - 1
src/Command/ServerInfo.php → 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

+ 3 - 1
src/Command/ServerInfoV26x.php → 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

+ 3 - 1
src/Command/ServerLastSave.php → 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

+ 3 - 1
src/Command/ServerMonitor.php → 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

+ 3 - 1
src/Command/ServerObject.php → 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

+ 3 - 1
src/Command/ServerSave.php → 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

+ 3 - 1
src/Command/ServerScript.php → 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

+ 3 - 1
src/Command/ServerSentinel.php → 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

+ 3 - 1
src/Command/ServerShutdown.php → 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

+ 3 - 1
src/Command/ServerSlaveOf.php → 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

+ 3 - 1
src/Command/ServerSlowlog.php → 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

+ 3 - 1
src/Command/ServerTime.php → 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

+ 3 - 1
src/Command/SetAdd.php → 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

+ 3 - 1
src/Command/SetCardinality.php → 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

+ 3 - 1
src/Command/SetDifference.php → 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

+ 3 - 1
src/Command/SetDifferenceStore.php → 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

Some files were not shown because too many files changed in this diff