Browse Source

Enhancement: allows method chaining with multi-exec blocks.

Daniele Alessandri 15 năm trước cách đây
mục cha
commit
ee5e978a6c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -502,7 +502,7 @@ class MultiExecBlock {
         $response = $this->_redisClient->executeCommand($command);
         $response = $this->_redisClient->executeCommand($command);
         if (isset($response->queued)) {
         if (isset($response->queued)) {
             $this->_commands[] = $command;
             $this->_commands[] = $command;
-            return $response;
+            return $this;
         }
         }
         else {
         else {
             throw new ClientException('The server did not respond with a QUEUED status reply');
             throw new ClientException('The server did not respond with a QUEUED status reply');