浏览代码

Renamed LPOPPUSH to RPOPLPUSH

Daniele Alessandri 16 年之前
父节点
当前提交
59fafbb68b
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/Predis.php

+ 4 - 4
lib/Predis.php

@@ -219,12 +219,12 @@ class Client {
                 'listSet'      => '\Predis\Commands\ListSet',
             'lrem'             => '\Predis\Commands\ListRemove',
                 'listRemove'   => '\Predis\Commands\ListRemove',
-            'lpoppush'         => '\Predis\Commands\ListPopPush',
-                'listPopPush'  => '\Predis\Commands\ListPopPush',
             'lpop'             => '\Predis\Commands\ListPopFirst',
                 'popFirst'     => '\Predis\Commands\ListPopFirst',
             'rpop'             => '\Predis\Commands\ListPopLast',
                 'popLast'      => '\Predis\Commands\ListPopLast',
+            'rpoplpush'        => '\Predis\Commands\ListPushTailPopFirst',
+                'listPushTailPopFist'  => '\Predis\Commands\ListPushTailPopFirst',
 
             /* commands operating on sets */
             'sadd'                      => '\Predis\Commands\SetAdd', 
@@ -902,8 +902,8 @@ class ListRemove extends \Predis\BulkCommand {
     public function getCommandId() { return 'LREM'; }
 }
 
-class ListPopPush extends \Predis\BulkCommand {
-    public function getCommandId() { return 'LPOPPUSH'; }
+class ListPushTailPopFirst extends \Predis\BulkCommand {
+    public function getCommandId() { return 'RPOPLPUSH'; }
 }
 
 class ListPopFirst extends \Predis\InlineCommand {