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; }
public function connect() { parent::connect(); if (count($this->_initCmds) > 0) { $this->sendInitializationCommands(); } }