From ee5e978a6c435d0c6c999e2e5ebe4c730d845714 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Fri, 26 Feb 2010 22:47:39 +0100 Subject: [PATCH] Enhancement: allows method chaining with multi-exec blocks. --- lib/Predis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Predis.php b/lib/Predis.php index 9d853390..ac977258 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -502,7 +502,7 @@ class MultiExecBlock { $response = $this->_redisClient->executeCommand($command); if (isset($response->queued)) { $this->_commands[] = $command; - return $response; + return $this; } else { throw new ClientException('The server did not respond with a QUEUED status reply');