system/Cache/Handlers/RedisHandler.php
public function initialize()
	{
		$config = $this->config;

		$this->redis = new \Redis();
		if (! $this->redis->connect($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout']))
		{
			log_message('error', 'Cache: Redis connection failed. Check your configuration.');
		}

		if (isset($config['password']) && ! $this->redis->auth($config['password']))
		{
			log_message('error', 'Cache: Redis authentication failed.');
		}

		if (isset($config['database']) && ! $this->redis->select($config['database']))
		{
			log_message('error', 'Cache: Redis select database failed.');
		}
	}
public function initialize()
	{
		$config = $this->config;

		$this->redis = new \Redis();
		if (! $this->redis->connect($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout']))
		{
			log_message('error', 'Cache: Redis connection failed. Check your configuration.');
		}

		if (isset($config['password']) && ! $this->redis->auth($config['password']))
		{
			log_message('error', 'Cache: Redis authentication failed.');
		}

		if (isset($config['database']) && ! $this->redis->select($config['database']))
		{
			log_message('error', 'Cache: Redis select database failed.');
		}
	}
Takes care of any handler-specific setup that must be done.