private static function getConfig() { $config = Config::getOrEmpty('cache'); return Arr::overwrite(static::$defaultConfig, isset($config['memcache']) ? $config['memcache'] : []); }
private static function loadFromConfig() { static::$config = Arr::overwrite(static::$defaultConfig, Config::getOrEmpty('log')); static::$config['folder'] = rtrim(static::$config['folder'], '/\\ '); return static::$config; }