Cml\Cache\Redis::__construct PHP Method

__construct() public method

使用的缓存配置 默认为使用default_cache配置的参数
public __construct ( $conf = false )
    public function __construct($conf = false)
    {
        $this->conf = $conf ? $conf : Config::get('default_cache');
        if (!extension_loaded('redis')) {
            throw new PhpExtendNotInstall(Lang::get('_CACHE_EXTEND_NOT_INSTALL_', 'Redis'));
        }
    }

Same methods

Redis::__construct ( bool|array $conf = false )