Explorar o código

New Predis\Client::multiExec method added.

Daniele Alessandri %!s(int64=15) %!d(string=hai) anos
pai
achega
1626f9658c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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);
     }