mirror of
https://github.com/predis/predis.git
synced 2026-09-17 05:47:05 +00:00
New Predis\Client::multiExec method added.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user