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

This commit is contained in:
Daniele Alessandri
2009-11-11 21:50:22 +01:00
parent 1a8f832d6c
commit d1f6658a3d
+6
View File
@@ -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'; }
}