connect($cnf['host'], $cnf['port']); if(!$res) { $this->setError('redis_connect'); return false; } } return self::$_instance; } }