public static function getRedis() { if (!isset(self::$redis)) { $config = self::getConfig()->redis; self::$redis = new HaloRedis($config->host, $config->port, empty($config->password) ? null : $config->password); } return self::$redis; }