mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Make it possible to pipeline instances of Predis\Command\ICommand directly.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user