New Predis\Client::multiExec method added.

This commit is contained in:
Daniele Alessandri
2009-12-28 00:29:51 +01:00
parent f4b0f664e7
commit 1626f9658c
+5
View File
@@ -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);
}