浏览代码

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

Daniele Alessandri 15 年之前
父节点
当前提交
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'; }
+}
 ?>