Эх сурвалжийг харах

New command: APPEND (Redis v2.0-dev).

Daniele Alessandri 15 жил өмнө
parent
commit
90d7b252ae
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      lib/Predis.php

+ 5 - 0
lib/Predis.php

@@ -1077,6 +1077,7 @@ class RedisServer_vNext extends RedisServer_v1_2 {
             /* miscellaneous commands */
             'multi'     => '\Predis\Commands\Multi',
             'exec'      => '\Predis\Commands\Exec',
+            'append'    => '\Predis\Commands\Append',
 
             /* commands operating on lists */
             'blpop'                     => '\Predis\Commands\ListPopFirstBlocking',
@@ -1606,4 +1607,8 @@ class Exec extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'EXEC'; }
 }
+
+class Append extends \Predis\BulkCommand {
+    public function getCommandId() { return 'APPEND'; }
+}
 ?>