Cml\Cache\File::__construct PHP Метод

__construct() публичный Метод

使用的缓存配置 默认为使用default_cache配置的参数
public __construct ( $conf = false )
    public function __construct($conf = false)
    {
        $this->conf = $conf ? $conf : Config::get('default_cache');
        $this->conf['CACHE_PATH'] = isset($this->conf['CACHE_PATH']) ? $this->conf['CACHE_PATH'] : Cml::getApplicationDir('runtime_cache_path') . DIRECTORY_SEPARATOR . 'FileCache' . DIRECTORY_SEPARATOR;
        is_dir($this->conf['CACHE_PATH']) || mkdir($this->conf['CACHE_PATH'], 0700, true);
    }

Same methods

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