예제 #1
0
파일: Predis.php 프로젝트: pietro/predis
 public function __construct(\Predis\Connection $connection, $size)
 {
     $this->_connection = $connection;
     $this->_reader = $connection->getResponseReader();
     $this->_position = 0;
     $this->_current = $size > 0 ? $this->getValue() : null;
     $this->_replySize = $size;
 }
예제 #2
0
파일: Predis.php 프로젝트: dgw/ThinkUp
 public function connect()
 {
     parent::connect();
     if (count($this->_initCmds) > 0) {
         $this->sendInitializationCommands();
     }
 }