Enhancement: allows method chaining with commands pipelines.

This commit is contained in:
Daniele Alessandri
2010-02-26 22:30:57 +01:00
parent 2b0bd88d8f
commit 47d34531e3
+3
View File
@@ -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) {