Extends
lithium\core\Object
Initialize the Redis connection object and connect to the Redis server.
Returns
voidSource
protected function _init() {
if (!$this->connection) {
$this->connection = new RedisCore();
}
list($ip, $port) = explode(':', $this->_config['host']);
$method = $this->_config['persistent'] ? 'pconnect' : 'connect';
$this->connection->{$method}($ip, $port);
}