浏览代码

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

Daniele Alessandri 14 年之前
父节点
当前提交
fee3866f54
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Predis/Pipeline/PipelineContext.php

+ 4 - 0
lib/Predis/Pipeline/PipelineContext.php

@@ -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();