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

Implemented LPOPPUSH (Class: \Predis\Commands\ListPopPush)

Daniele Alessandri 16 жил өмнө
parent
commit
d1f6658a3d
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      lib/Predis.php

+ 6 - 0
lib/Predis.php

@@ -219,6 +219,8 @@ 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',
@@ -900,6 +902,10 @@ class ListRemove extends \Predis\BulkCommand {
     public function getCommandId() { return 'LREM'; }
 }
 
+class ListPopPush extends \Predis\BulkCommand {
+    public function getCommandId() { return 'LPOPPUSH'; }
+}
+
 class ListPopFirst extends \Predis\InlineCommand {
     public function getCommandId() { return 'LPOP'; }
 }