Преглед на файлове

The command ListPopLastPushHead (RPOPLPUSH) is now defined as an inline command instead of bulk after a change in Redis 1.2.1. The old bulk RPOPLPUSH has been preserved and renamed in ListPopLastPushHeadBulk, so that you can override the current server profile if you need the old (and uncorrect) behaviour when connecting to a Redis 1.2.0 instance.

Daniele Alessandri преди 15 години
родител
ревизия
21acb300a7
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      lib/Predis.php

+ 5 - 1
lib/Predis.php

@@ -1262,7 +1262,11 @@ class ListRemove extends \Predis\BulkCommand {
     public function getCommandId() { return 'LREM'; }
 }
 
-class ListPopLastPushHead extends \Predis\BulkCommand {
+class ListPopLastPushHead extends \Predis\InlineCommand {
+    public function getCommandId() { return 'RPOPLPUSH'; }
+}
+
+class ListPopLastPushHeadBulk extends \Predis\BulkCommand {
     public function getCommandId() { return 'RPOPLPUSH'; }
 }