瀏覽代碼

Enhancement: allows method chaining with multi-exec blocks.

Daniele Alessandri 15 年之前
父節點
當前提交
ee5e978a6c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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');