mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Enhancement: allows method chaining with commands pipelines.
This commit is contained in:
@@ -412,6 +412,7 @@ class CommandPipeline {
|
||||
public function __call($method, $arguments) {
|
||||
$command = $this->_redisClient->createCommand($method, $arguments);
|
||||
$this->recordCommand($command);
|
||||
return $this;
|
||||
}
|
||||
|
||||
private function recordCommand(Command $command) {
|
||||
@@ -438,6 +439,8 @@ class CommandPipeline {
|
||||
$this->_returnValues[] = $connection->readResponse($commands[$i]);
|
||||
unset($commands[$i]);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
private function setRunning($bool) {
|
||||
|
||||
Reference in New Issue
Block a user