Daniele Alessandri 15 лет назад
Родитель
Сommit
460dfce7f6
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      lib/Predis.php

+ 6 - 4
lib/Predis.php

@@ -1091,6 +1091,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
             'multi'     => '\Predis\Commands\Multi',
             'exec'      => '\Predis\Commands\Exec',
             'discard'   => '\Predis\Commands\Discard',
+
+            /* commands operating on string values */
             'append'    => '\Predis\Commands\Append',
 
             /* commands operating on lists */
@@ -1265,6 +1267,10 @@ class Type extends \Predis\InlineCommand {
     public function getCommandId() { return 'TYPE'; }
 }
 
+class Append extends \Predis\BulkCommand {
+    public function getCommandId() { return 'APPEND'; }
+}
+
 /* commands operating on the key space */
 class Keys extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
@@ -1637,8 +1643,4 @@ class Discard extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'DISCARD'; }
 }
-
-class Append extends \Predis\BulkCommand {
-    public function getCommandId() { return 'APPEND'; }
-}
 ?>