diff --git a/lib/Predis.php b/lib/Predis.php index d46cdff8..9fba7877 100644 --- a/lib/Predis.php +++ b/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); }