Make it possible to pipeline instances of Predis\Command\ICommand directly.

This commit is contained in:
Daniele Alessandri
2011-06-02 16:53:16 +02:00
parent dfad0d3d24
commit fee3866f54
+4
View File
@@ -47,6 +47,10 @@ class PipelineContext {
$this->_pipeline[] = $command;
}
public function executeCommand(ICommand $command) {
$this->recordCommand($command);
}
public function flushPipeline() {
if (count($this->_pipeline) > 0) {
$connection = $this->_client->getConnection();