Browse Source

New Predis\Client::multiExec method added.

Daniele Alessandri 15 years ago
parent
commit
1626f9658c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lib/Predis.php

+ 5 - 0
lib/Predis.php

@@ -152,6 +152,11 @@ class Client {
         return $pipelineBlock !== null ? $pipeline->execute($pipelineBlock) : $pipeline;
     }
 
+    public function multiExec(\Closure $multiExecBlock = null) {
+        $multiExec = new MultiExecBlock($this);
+        return $multiExecBlock !== null ? $multiExec->execute($multiExecBlock) : $multiExec;
+    }
+
     public function registerCommands(Array $commands) {
         $this->_serverProfile->registerCommands($commands);
     }