public static function loadConfig($file = self::DEFAULT_CONFIG_FILE)
    {
        self::readConfigFile($file);

        Redis::setConfig(array(
            'scheme'     => static::getConfig('redis.scheme', Redis::DEFAULT_SCHEME),
            'host'       => static::getConfig('redis.host', Redis::DEFAULT_HOST),
            'port'       => static::getConfig('redis.port', Redis::DEFAULT_PORT),
            'namespace'  => static::getConfig('redis.namespace', Redis::DEFAULT_NS),
            'password'   => static::getConfig('redis.password', Redis::DEFAULT_PASSWORD),
            'rw_timeout' => static::getConfig('redis.rw_timeout', Redis::DEFAULT_RW_TIMEOUT),
            'phpiredis'  => static::getConfig('redis.phpiredis', Redis::DEFAULT_PHPIREDIS),
            'predis'     => static::getConfig('predis'),
        ));

        return true;
    }
public static function loadConfig($file = self::DEFAULT_CONFIG_FILE)
    {
        self::readConfigFile($file);

        Redis::setConfig(array(
            'scheme'     => static::getConfig('redis.scheme', Redis::DEFAULT_SCHEME),
            'host'       => static::getConfig('redis.host', Redis::DEFAULT_HOST),
            'port'       => static::getConfig('redis.port', Redis::DEFAULT_PORT),
            'namespace'  => static::getConfig('redis.namespace', Redis::DEFAULT_NS),
            'password'   => static::getConfig('redis.password', Redis::DEFAULT_PASSWORD),
            'rw_timeout' => static::getConfig('redis.rw_timeout', Redis::DEFAULT_RW_TIMEOUT),
            'phpiredis'  => static::getConfig('redis.phpiredis', Redis::DEFAULT_PHPIREDIS),
            'predis'     => static::getConfig('predis'),
        ));

        return true;
    }
public static function loadConfig ( $ file = self :: DEFAULT_CONFIG_FILE ) { self :: readConfigFile ( $ file ) ; Redis :: setConfig ( array ( 'scheme' => static :: getConfig ( 'redis.scheme' , Redis :: DEFAULT_SCHEME ) , 'host' => static :: getConfig ( 'redis.host' , Redis :: DEFAULT_HOST ) , 'port' => static :: getConfig ( 'redis.port' , Redis :: DEFAULT_PORT ) , 'namespace' => static :: getConfig ( 'redis.namespace' , Redis :: DEFAULT_NS ) , 'password' => static :: getConfig ( 'redis.password' , Redis :: DEFAULT_PASSWORD ) , 'rw_timeout' => static :: getConfig ( 'redis.rw_timeout' , Redis :: DEFAULT_RW_TIMEOUT ) , 'phpiredis' => static :: getConfig ( 'redis.phpiredis' , Redis :: DEFAULT_PHPIREDIS ) , 'predis' => static :: getConfig ( 'predis' ) , ) ) ; return true ; }
Reads and loads data from a config file

@param  string $file The config file path
@return bool
Reads and loads data from a config file