Browse Source

Commands issued with a MultiExecBlock now return ResponseQueued instances to the caller.

Daniele Alessandri 15 years ago
parent
commit
1f9e6143bf
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lib/Predis.php

+ 4 - 2
lib/Predis.php

@@ -483,9 +483,11 @@ class MultiExecBlock {
 
     public function __call($method, $arguments) {
         $this->initialize();
-        $command = $this->_redisClient->createCommand($method, $arguments);
-        if (isset($this->_redisClient->executeCommand($command)->queued)) {
+        $command  = $this->_redisClient->createCommand($method, $arguments);
+        $response = $this->_redisClient->executeCommand($command);
+        if (isset($response->queued)) {
             $this->_commands[] = $command;
+            return $response;
         }
         else {
             // TODO: ...