Jelajahi Sumber

Rename method ICommand::getCommandId() to ICommand::getId().

Daniele Alessandri 14 tahun lalu
induk
melakukan
30bc53ee75
100 mengubah file dengan 100 tambahan dan 100 penghapusan
  1. 1 1
      README.markdown
  2. 1 1
      examples/SimpleDebuggableConnection.php
  3. 1 1
      lib/Predis/Commands/Append.php
  4. 1 1
      lib/Predis/Commands/Auth.php
  5. 1 1
      lib/Predis/Commands/BackgroundRewriteAppendOnlyFile.php
  6. 1 1
      lib/Predis/Commands/BackgroundSave.php
  7. 1 1
      lib/Predis/Commands/Command.php
  8. 1 1
      lib/Predis/Commands/Config.php
  9. 1 1
      lib/Predis/Commands/DatabaseSize.php
  10. 1 1
      lib/Predis/Commands/Decrement.php
  11. 1 1
      lib/Predis/Commands/DecrementBy.php
  12. 1 1
      lib/Predis/Commands/Delete.php
  13. 1 1
      lib/Predis/Commands/Discard.php
  14. 1 1
      lib/Predis/Commands/DoEcho.php
  15. 1 1
      lib/Predis/Commands/Exec.php
  16. 1 1
      lib/Predis/Commands/Exists.php
  17. 1 1
      lib/Predis/Commands/Expire.php
  18. 1 1
      lib/Predis/Commands/ExpireAt.php
  19. 1 1
      lib/Predis/Commands/FlushAll.php
  20. 1 1
      lib/Predis/Commands/FlushDatabase.php
  21. 1 1
      lib/Predis/Commands/Get.php
  22. 1 1
      lib/Predis/Commands/GetBit.php
  23. 1 1
      lib/Predis/Commands/GetMultiple.php
  24. 1 1
      lib/Predis/Commands/GetRange.php
  25. 1 1
      lib/Predis/Commands/GetSet.php
  26. 1 1
      lib/Predis/Commands/HashDelete.php
  27. 1 1
      lib/Predis/Commands/HashExists.php
  28. 1 1
      lib/Predis/Commands/HashGet.php
  29. 1 1
      lib/Predis/Commands/HashGetAll.php
  30. 1 1
      lib/Predis/Commands/HashGetMultiple.php
  31. 1 1
      lib/Predis/Commands/HashIncrementBy.php
  32. 1 1
      lib/Predis/Commands/HashKeys.php
  33. 1 1
      lib/Predis/Commands/HashLength.php
  34. 1 1
      lib/Predis/Commands/HashSet.php
  35. 1 1
      lib/Predis/Commands/HashSetMultiple.php
  36. 1 1
      lib/Predis/Commands/HashSetPreserve.php
  37. 1 1
      lib/Predis/Commands/HashValues.php
  38. 1 1
      lib/Predis/Commands/ICommand.php
  39. 1 1
      lib/Predis/Commands/Increment.php
  40. 1 1
      lib/Predis/Commands/IncrementBy.php
  41. 1 1
      lib/Predis/Commands/Info.php
  42. 1 1
      lib/Predis/Commands/Keys.php
  43. 1 1
      lib/Predis/Commands/LastSave.php
  44. 1 1
      lib/Predis/Commands/ListIndex.php
  45. 1 1
      lib/Predis/Commands/ListInsert.php
  46. 1 1
      lib/Predis/Commands/ListLength.php
  47. 1 1
      lib/Predis/Commands/ListPopFirst.php
  48. 1 1
      lib/Predis/Commands/ListPopFirstBlocking.php
  49. 1 1
      lib/Predis/Commands/ListPopLast.php
  50. 1 1
      lib/Predis/Commands/ListPopLastBlocking.php
  51. 1 1
      lib/Predis/Commands/ListPopLastPushHead.php
  52. 1 1
      lib/Predis/Commands/ListPopLastPushHeadBlocking.php
  53. 1 1
      lib/Predis/Commands/ListPushHead.php
  54. 1 1
      lib/Predis/Commands/ListPushHeadX.php
  55. 1 1
      lib/Predis/Commands/ListPushTail.php
  56. 1 1
      lib/Predis/Commands/ListPushTailX.php
  57. 1 1
      lib/Predis/Commands/ListRange.php
  58. 1 1
      lib/Predis/Commands/ListRemove.php
  59. 1 1
      lib/Predis/Commands/ListSet.php
  60. 1 1
      lib/Predis/Commands/ListTrim.php
  61. 1 1
      lib/Predis/Commands/MoveKey.php
  62. 1 1
      lib/Predis/Commands/Multi.php
  63. 1 1
      lib/Predis/Commands/Persist.php
  64. 1 1
      lib/Predis/Commands/Ping.php
  65. 1 1
      lib/Predis/Commands/Publish.php
  66. 1 1
      lib/Predis/Commands/Quit.php
  67. 1 1
      lib/Predis/Commands/RandomKey.php
  68. 1 1
      lib/Predis/Commands/Rename.php
  69. 1 1
      lib/Predis/Commands/RenamePreserve.php
  70. 1 1
      lib/Predis/Commands/Save.php
  71. 1 1
      lib/Predis/Commands/SelectDatabase.php
  72. 1 1
      lib/Predis/Commands/Set.php
  73. 1 1
      lib/Predis/Commands/SetAdd.php
  74. 1 1
      lib/Predis/Commands/SetBit.php
  75. 1 1
      lib/Predis/Commands/SetCardinality.php
  76. 1 1
      lib/Predis/Commands/SetDifference.php
  77. 1 1
      lib/Predis/Commands/SetDifferenceStore.php
  78. 1 1
      lib/Predis/Commands/SetExpire.php
  79. 1 1
      lib/Predis/Commands/SetIntersection.php
  80. 1 1
      lib/Predis/Commands/SetIntersectionStore.php
  81. 1 1
      lib/Predis/Commands/SetIsMember.php
  82. 1 1
      lib/Predis/Commands/SetMembers.php
  83. 1 1
      lib/Predis/Commands/SetMove.php
  84. 1 1
      lib/Predis/Commands/SetMultiple.php
  85. 1 1
      lib/Predis/Commands/SetMultiplePreserve.php
  86. 1 1
      lib/Predis/Commands/SetPop.php
  87. 1 1
      lib/Predis/Commands/SetPreserve.php
  88. 1 1
      lib/Predis/Commands/SetRandomMember.php
  89. 1 1
      lib/Predis/Commands/SetRange.php
  90. 1 1
      lib/Predis/Commands/SetRemove.php
  91. 1 1
      lib/Predis/Commands/SetUnion.php
  92. 1 1
      lib/Predis/Commands/SetUnionStore.php
  93. 1 1
      lib/Predis/Commands/Shutdown.php
  94. 1 1
      lib/Predis/Commands/SlaveOf.php
  95. 1 1
      lib/Predis/Commands/Sort.php
  96. 1 1
      lib/Predis/Commands/Strlen.php
  97. 1 1
      lib/Predis/Commands/Subscribe.php
  98. 1 1
      lib/Predis/Commands/SubscribeByPattern.php
  99. 1 1
      lib/Predis/Commands/Substr.php
  100. 1 1
      lib/Predis/Commands/TimeToLive.php

+ 1 - 1
README.markdown

@@ -99,7 +99,7 @@ class that matches the command type and its behaviour and then bind it to a
 client instance at runtime. Actually, it is easier done than said:
 
     class BrandNewRedisCommand extends Predis\Commands\Command {
-        public function getCommandId() { return 'NEWCMD'; }
+        public function getId() { return 'NEWCMD'; }
     }
 
     $redis = new Predis\Client();

+ 1 - 1
examples/SimpleDebuggableConnection.php

@@ -17,7 +17,7 @@ class SimpleDebuggableConnection extends StreamConnection {
     private function storeDebug(ICommand $command, $direction) {
         $firtsArg  = $command->getArgument(0);
         $timestamp = round(microtime(true) - $this->_tstart, 4);
-        $debug  = $command->getCommandId();
+        $debug  = $command->getId();
         $debug .= isset($firtsArg) ? " $firtsArg " : ' ';
         $debug .= "$direction $this";
         $debug .= " [{$timestamp}s]";

+ 1 - 1
lib/Predis/Commands/Append.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Append extends Command {
-    public function getCommandId() { return 'APPEND'; }
+    public function getId() { return 'APPEND'; }
 }

+ 1 - 1
lib/Predis/Commands/Auth.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Auth extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'AUTH'; }
+    public function getId() { return 'AUTH'; }
 }

+ 1 - 1
lib/Predis/Commands/BackgroundRewriteAppendOnlyFile.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class BackgroundRewriteAppendOnlyFile extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'BGREWRITEAOF'; }
+    public function getId() { return 'BGREWRITEAOF'; }
     public function parseResponse($data) {
         return $data == 'Background append only file rewriting started';
     }

+ 1 - 1
lib/Predis/Commands/BackgroundSave.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class BackgroundSave extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'BGSAVE'; }
+    public function getId() { return 'BGSAVE'; }
     public function parseResponse($data) {
         if ($data == 'Background saving started') {
             return true;

+ 1 - 1
lib/Predis/Commands/Command.php

@@ -71,6 +71,6 @@ abstract class Command implements ICommand {
             $acc .= " $arg";
             return $acc;
         };
-        return array_reduce($this->getArguments(), $reducer, $this->getCommandId());
+        return array_reduce($this->getArguments(), $reducer, $this->getId());
     }
 }

+ 1 - 1
lib/Predis/Commands/Config.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Config extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'CONFIG'; }
+    public function getId() { return 'CONFIG'; }
 }

+ 1 - 1
lib/Predis/Commands/DatabaseSize.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class DatabaseSize extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'DBSIZE'; }
+    public function getId() { return 'DBSIZE'; }
 }

+ 1 - 1
lib/Predis/Commands/Decrement.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Decrement extends Command {
-    public function getCommandId() { return 'DECR'; }
+    public function getId() { return 'DECR'; }
 }

+ 1 - 1
lib/Predis/Commands/DecrementBy.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class DecrementBy extends Command {
-    public function getCommandId() { return 'DECRBY'; }
+    public function getId() { return 'DECRBY'; }
 }

+ 1 - 1
lib/Predis/Commands/Delete.php

@@ -5,7 +5,7 @@ namespace Predis\Commands;
 use Predis\Utils;
 
 class Delete extends Command {
-    public function getCommandId() { return 'DEL'; }
+    public function getId() { return 'DEL'; }
     public function filterArguments(Array $arguments) {
         return Utils::filterArrayArguments($arguments);
     }

+ 1 - 1
lib/Predis/Commands/Discard.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Discard extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'DISCARD'; }
+    public function getId() { return 'DISCARD'; }
 }

+ 1 - 1
lib/Predis/Commands/DoEcho.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class DoEcho extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'ECHO'; }
+    public function getId() { return 'ECHO'; }
 }

+ 1 - 1
lib/Predis/Commands/Exec.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Exec extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'EXEC'; }
+    public function getId() { return 'EXEC'; }
 }

+ 1 - 1
lib/Predis/Commands/Exists.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class Exists extends Command {
-    public function getCommandId() { return 'EXISTS'; }
+    public function getId() { return 'EXISTS'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/Expire.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class Expire extends Command {
-    public function getCommandId() { return 'EXPIRE'; }
+    public function getId() { return 'EXPIRE'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/ExpireAt.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class ExpireAt extends Command {
-    public function getCommandId() { return 'EXPIREAT'; }
+    public function getId() { return 'EXPIREAT'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/FlushAll.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class FlushAll extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'FLUSHALL'; }
+    public function getId() { return 'FLUSHALL'; }
 }

+ 1 - 1
lib/Predis/Commands/FlushDatabase.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class FlushDatabase extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'FLUSHDB'; }
+    public function getId() { return 'FLUSHDB'; }
 }

+ 1 - 1
lib/Predis/Commands/Get.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Get extends Command {
-    public function getCommandId() { return 'GET'; }
+    public function getId() { return 'GET'; }
 }

+ 1 - 1
lib/Predis/Commands/GetBit.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class GetBit extends Command {
-    public function getCommandId() { return 'GETBIT'; }
+    public function getId() { return 'GETBIT'; }
 }

+ 1 - 1
lib/Predis/Commands/GetMultiple.php

@@ -6,7 +6,7 @@ use Predis\Utils;
 
 class GetMultiple extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'MGET'; }
+    public function getId() { return 'MGET'; }
     public function filterArguments(Array $arguments) {
         return Utils::filterArrayArguments($arguments);
     }

+ 1 - 1
lib/Predis/Commands/GetRange.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class GetRange extends Command {
-    public function getCommandId() { return 'GETRANGE'; }
+    public function getId() { return 'GETRANGE'; }
 }

+ 1 - 1
lib/Predis/Commands/GetSet.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class GetSet extends Command {
-    public function getCommandId() { return 'GETSET'; }
+    public function getId() { return 'GETSET'; }
 }

+ 1 - 1
lib/Predis/Commands/HashDelete.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class HashDelete extends Command {
-    public function getCommandId() { return 'HDEL'; }
+    public function getId() { return 'HDEL'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/HashExists.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class HashExists extends Command {
-    public function getCommandId() { return 'HEXISTS'; }
+    public function getId() { return 'HEXISTS'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/HashGet.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class HashGet extends Command {
-    public function getCommandId() { return 'HGET'; }
+    public function getId() { return 'HGET'; }
 }

+ 1 - 1
lib/Predis/Commands/HashGetAll.php

@@ -5,7 +5,7 @@ namespace Predis\Commands;
 use Predis\Iterators\MultiBulkResponseTuple;
 
 class HashGetAll extends Command {
-    public function getCommandId() { return 'HGETALL'; }
+    public function getId() { return 'HGETALL'; }
     public function parseResponse($data) {
         if ($data instanceof \Iterator) {
             return new MultiBulkResponseTuple($data);

+ 1 - 1
lib/Predis/Commands/HashGetMultiple.php

@@ -3,7 +3,7 @@
 namespace Predis\Commands;
 
 class HashGetMultiple extends Command {
-    public function getCommandId() { return 'HMGET'; }
+    public function getId() { return 'HMGET'; }
     public function filterArguments(Array $arguments) {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             $flattenedKVs = array($arguments[0]);

+ 1 - 1
lib/Predis/Commands/HashIncrementBy.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class HashIncrementBy extends Command {
-    public function getCommandId() { return 'HINCRBY'; }
+    public function getId() { return 'HINCRBY'; }
 }

+ 1 - 1
lib/Predis/Commands/HashKeys.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class HashKeys extends Command {
-    public function getCommandId() { return 'HKEYS'; }
+    public function getId() { return 'HKEYS'; }
 }

+ 1 - 1
lib/Predis/Commands/HashLength.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class HashLength extends Command {
-    public function getCommandId() { return 'HLEN'; }
+    public function getId() { return 'HLEN'; }
 }

+ 1 - 1
lib/Predis/Commands/HashSet.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class HashSet extends Command {
-    public function getCommandId() { return 'HSET'; }
+    public function getId() { return 'HSET'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/HashSetMultiple.php

@@ -3,7 +3,7 @@
 namespace Predis\Commands;
 
 class HashSetMultiple extends Command {
-    public function getCommandId() { return 'HMSET'; }
+    public function getId() { return 'HMSET'; }
     public function filterArguments(Array $arguments) {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             $flattenedKVs = array($arguments[0]);

+ 1 - 1
lib/Predis/Commands/HashSetPreserve.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class HashSetPreserve extends Command {
-    public function getCommandId() { return 'HSETNX'; }
+    public function getId() { return 'HSETNX'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/HashValues.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class HashValues extends Command {
-    public function getCommandId() { return 'HVALS'; }
+    public function getId() { return 'HVALS'; }
 }

+ 1 - 1
lib/Predis/Commands/ICommand.php

@@ -5,7 +5,7 @@ namespace Predis\Commands;
 use Predis\Distribution\IDistributionStrategy;
 
 interface ICommand {
-    public function getCommandId();
+    public function getId();
     public function canBeHashed();
     public function getHash(IDistributionStrategy $distributor);
     public function setArgumentsArray(Array $arguments);

+ 1 - 1
lib/Predis/Commands/Increment.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Increment extends Command {
-    public function getCommandId() { return 'INCR'; }
+    public function getId() { return 'INCR'; }
 }

+ 1 - 1
lib/Predis/Commands/IncrementBy.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class IncrementBy extends Command {
-    public function getCommandId() { return 'INCRBY'; }
+    public function getId() { return 'INCRBY'; }
 }

+ 1 - 1
lib/Predis/Commands/Info.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class Info extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'INFO'; }
+    public function getId() { return 'INFO'; }
     public function parseResponse($data) {
         $info      = array();
         $infoLines = explode("\r\n", $data, -1);

+ 1 - 1
lib/Predis/Commands/Keys.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Keys extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'KEYS'; }
+    public function getId() { return 'KEYS'; }
 }

+ 1 - 1
lib/Predis/Commands/LastSave.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class LastSave extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'LASTSAVE'; }
+    public function getId() { return 'LASTSAVE'; }
 }

+ 1 - 1
lib/Predis/Commands/ListIndex.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListIndex extends Command {
-    public function getCommandId() { return 'LINDEX'; }
+    public function getId() { return 'LINDEX'; }
 }

+ 1 - 1
lib/Predis/Commands/ListInsert.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListInsert extends Command {
-    public function getCommandId() { return 'LINSERT'; }
+    public function getId() { return 'LINSERT'; }
 }

+ 1 - 1
lib/Predis/Commands/ListLength.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListLength extends Command {
-    public function getCommandId() { return 'LLEN'; }
+    public function getId() { return 'LLEN'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopFirst.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopFirst extends Command {
-    public function getCommandId() { return 'LPOP'; }
+    public function getId() { return 'LPOP'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopFirstBlocking.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopFirstBlocking extends Command {
-    public function getCommandId() { return 'BLPOP'; }
+    public function getId() { return 'BLPOP'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopLast.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopLast extends Command {
-    public function getCommandId() { return 'RPOP'; }
+    public function getId() { return 'RPOP'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopLastBlocking.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopLastBlocking extends Command {
-    public function getCommandId() { return 'BRPOP'; }
+    public function getId() { return 'BRPOP'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopLastPushHead.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopLastPushHead extends Command {
-    public function getCommandId() { return 'RPOPLPUSH'; }
+    public function getId() { return 'RPOPLPUSH'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPopLastPushHeadBlocking.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPopLastPushHeadBlocking extends Command {
-    public function getCommandId() { return 'BRPOPLPUSH'; }
+    public function getId() { return 'BRPOPLPUSH'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPushHead.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPushHead extends Command {
-    public function getCommandId() { return 'LPUSH'; }
+    public function getId() { return 'LPUSH'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPushHeadX.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPushHeadX extends Command {
-    public function getCommandId() { return 'LPUSHX'; }
+    public function getId() { return 'LPUSHX'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPushTail.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPushTail extends Command {
-    public function getCommandId() { return 'RPUSH'; }
+    public function getId() { return 'RPUSH'; }
 }

+ 1 - 1
lib/Predis/Commands/ListPushTailX.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListPushTailX extends Command {
-    public function getCommandId() { return 'RPUSHX'; }
+    public function getId() { return 'RPUSHX'; }
 }

+ 1 - 1
lib/Predis/Commands/ListRange.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListRange extends Command {
-    public function getCommandId() { return 'LRANGE'; }
+    public function getId() { return 'LRANGE'; }
 }

+ 1 - 1
lib/Predis/Commands/ListRemove.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListRemove extends Command {
-    public function getCommandId() { return 'LREM'; }
+    public function getId() { return 'LREM'; }
 }

+ 1 - 1
lib/Predis/Commands/ListSet.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListSet extends Command {
-    public function getCommandId() { return 'LSET'; }
+    public function getId() { return 'LSET'; }
 }

+ 1 - 1
lib/Predis/Commands/ListTrim.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class ListTrim extends Command {
-    public function getCommandId() { return 'LTRIM'; }
+    public function getId() { return 'LTRIM'; }
 }

+ 1 - 1
lib/Predis/Commands/MoveKey.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class MoveKey extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'MOVE'; }
+    public function getId() { return 'MOVE'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/Multi.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Multi extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'MULTI'; }
+    public function getId() { return 'MULTI'; }
 }

+ 1 - 1
lib/Predis/Commands/Persist.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class Persist extends Command {
-    public function getCommandId() { return 'PERSIST'; }
+    public function getId() { return 'PERSIST'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/Ping.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class Ping extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'PING'; }
+    public function getId() { return 'PING'; }
     public function parseResponse($data) {
         return $data === 'PONG' ? true : false;
     }

+ 1 - 1
lib/Predis/Commands/Publish.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Publish extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'PUBLISH'; }
+    public function getId() { return 'PUBLISH'; }
 }

+ 1 - 1
lib/Predis/Commands/Quit.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class Quit extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'QUIT'; }
+    public function getId() { return 'QUIT'; }
     public function closesConnection() { return true; }
 }

+ 1 - 1
lib/Predis/Commands/RandomKey.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class RandomKey extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'RANDOMKEY'; }
+    public function getId() { return 'RANDOMKEY'; }
     public function parseResponse($data) { return $data !== '' ? $data : null; }
 }

+ 1 - 1
lib/Predis/Commands/Rename.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Rename extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'RENAME'; }
+    public function getId() { return 'RENAME'; }
 }

+ 1 - 1
lib/Predis/Commands/RenamePreserve.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class RenamePreserve extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'RENAMENX'; }
+    public function getId() { return 'RENAMENX'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/Save.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Save extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SAVE'; }
+    public function getId() { return 'SAVE'; }
 }

+ 1 - 1
lib/Predis/Commands/SelectDatabase.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class SelectDatabase extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SELECT'; }
+    public function getId() { return 'SELECT'; }
 }

+ 1 - 1
lib/Predis/Commands/Set.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Set extends Command {
-    public function getCommandId() { return 'SET'; }
+    public function getId() { return 'SET'; }
 }

+ 1 - 1
lib/Predis/Commands/SetAdd.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class SetAdd extends Command {
-    public function getCommandId() { return 'SADD'; }
+    public function getId() { return 'SADD'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetBit.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetBit extends Command {
-    public function getCommandId() { return 'SETBIT'; }
+    public function getId() { return 'SETBIT'; }
 }

+ 1 - 1
lib/Predis/Commands/SetCardinality.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetCardinality extends Command {
-    public function getCommandId() { return 'SCARD'; }
+    public function getId() { return 'SCARD'; }
 }

+ 1 - 1
lib/Predis/Commands/SetDifference.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetDifference extends SetIntersection {
-    public function getCommandId() { return 'SDIFF'; }
+    public function getId() { return 'SDIFF'; }
 }

+ 1 - 1
lib/Predis/Commands/SetDifferenceStore.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetDifferenceStore extends SetIntersectionStore {
-    public function getCommandId() { return 'SDIFFSTORE'; }
+    public function getId() { return 'SDIFFSTORE'; }
 }

+ 1 - 1
lib/Predis/Commands/SetExpire.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetExpire extends Command {
-    public function getCommandId() { return 'SETEX'; }
+    public function getId() { return 'SETEX'; }
 }

+ 1 - 1
lib/Predis/Commands/SetIntersection.php

@@ -5,7 +5,7 @@ namespace Predis\Commands;
 use Predis\Utils;
 
 class SetIntersection extends Command {
-    public function getCommandId() { return 'SINTER'; }
+    public function getId() { return 'SINTER'; }
     public function filterArguments(Array $arguments) {
         return Utils::filterArrayArguments($arguments);
     }

+ 1 - 1
lib/Predis/Commands/SetIntersectionStore.php

@@ -5,7 +5,7 @@ namespace Predis\Commands;
 use Predis\Utils;
 
 class SetIntersectionStore extends Command {
-    public function getCommandId() { return 'SINTERSTORE'; }
+    public function getId() { return 'SINTERSTORE'; }
     public function filterArguments(Array $arguments) {
         return Utils::filterArrayArguments($arguments);
     }

+ 1 - 1
lib/Predis/Commands/SetIsMember.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class SetIsMember extends Command {
-    public function getCommandId() { return 'SISMEMBER'; }
+    public function getId() { return 'SISMEMBER'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetMembers.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetMembers extends Command {
-    public function getCommandId() { return 'SMEMBERS'; }
+    public function getId() { return 'SMEMBERS'; }
 }

+ 1 - 1
lib/Predis/Commands/SetMove.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class SetMove extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SMOVE'; }
+    public function getId() { return 'SMOVE'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetMultiple.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class SetMultiple extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'MSET'; }
+    public function getId() { return 'MSET'; }
     public function filterArguments(Array $arguments) {
         if (count($arguments) === 1 && is_array($arguments[0])) {
             $flattenedKVs = array();

+ 1 - 1
lib/Predis/Commands/SetMultiplePreserve.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class SetMultiplePreserve extends SetMultiple {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'MSETNX'; }
+    public function getId() { return 'MSETNX'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetPop.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetPop  extends Command {
-    public function getCommandId() { return 'SPOP'; }
+    public function getId() { return 'SPOP'; }
 }

+ 1 - 1
lib/Predis/Commands/SetPreserve.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class SetPreserve extends Command {
-    public function getCommandId() { return 'SETNX'; }
+    public function getId() { return 'SETNX'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetRandomMember.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetRandomMember extends Command {
-    public function getCommandId() { return 'SRANDMEMBER'; }
+    public function getId() { return 'SRANDMEMBER'; }
 }

+ 1 - 1
lib/Predis/Commands/SetRange.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetRange extends Command {
-    public function getCommandId() { return 'SETRANGE'; }
+    public function getId() { return 'SETRANGE'; }
 }

+ 1 - 1
lib/Predis/Commands/SetRemove.php

@@ -3,6 +3,6 @@
 namespace Predis\Commands;
 
 class SetRemove extends Command {
-    public function getCommandId() { return 'SREM'; }
+    public function getId() { return 'SREM'; }
     public function parseResponse($data) { return (bool) $data; }
 }

+ 1 - 1
lib/Predis/Commands/SetUnion.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetUnion extends SetIntersection {
-    public function getCommandId() { return 'SUNION'; }
+    public function getId() { return 'SUNION'; }
 }

+ 1 - 1
lib/Predis/Commands/SetUnionStore.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class SetUnionStore extends SetIntersectionStore {
-    public function getCommandId() { return 'SUNIONSTORE'; }
+    public function getId() { return 'SUNIONSTORE'; }
 }

+ 1 - 1
lib/Predis/Commands/Shutdown.php

@@ -4,6 +4,6 @@ namespace Predis\Commands;
 
 class Shutdown extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SHUTDOWN'; }
+    public function getId() { return 'SHUTDOWN'; }
     public function closesConnection() { return true; }
 }

+ 1 - 1
lib/Predis/Commands/SlaveOf.php

@@ -4,7 +4,7 @@ namespace Predis\Commands;
 
 class SlaveOf extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SLAVEOF'; }
+    public function getId() { return 'SLAVEOF'; }
     public function filterArguments(Array $arguments) {
         if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
             return array('NO', 'ONE');

+ 1 - 1
lib/Predis/Commands/Sort.php

@@ -3,7 +3,7 @@
 namespace Predis\Commands;
 
 class Sort extends Command {
-    public function getCommandId() { return 'SORT'; }
+    public function getId() { return 'SORT'; }
     public function filterArguments(Array $arguments) {
         if (count($arguments) === 1) {
             return $arguments;

+ 1 - 1
lib/Predis/Commands/Strlen.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Strlen extends Command {
-    public function getCommandId() { return 'STRLEN'; }
+    public function getId() { return 'STRLEN'; }
 }

+ 1 - 1
lib/Predis/Commands/Subscribe.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class Subscribe extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'SUBSCRIBE'; }
+    public function getId() { return 'SUBSCRIBE'; }
 }

+ 1 - 1
lib/Predis/Commands/SubscribeByPattern.php

@@ -4,5 +4,5 @@ namespace Predis\Commands;
 
 class SubscribeByPattern extends Command {
     public function canBeHashed()  { return false; }
-    public function getCommandId() { return 'PSUBSCRIBE'; }
+    public function getId() { return 'PSUBSCRIBE'; }
 }

+ 1 - 1
lib/Predis/Commands/Substr.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class Substr extends Command {
-    public function getCommandId() { return 'SUBSTR'; }
+    public function getId() { return 'SUBSTR'; }
 }

+ 1 - 1
lib/Predis/Commands/TimeToLive.php

@@ -3,5 +3,5 @@
 namespace Predis\Commands;
 
 class TimeToLive extends Command {
-    public function getCommandId() { return 'TTL'; }
+    public function getId() { return 'TTL'; }
 }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini