, ) {
? ? ) && ? lstorage.remove(key) : sstorage.remove(key)
}
/**
* 更新缓存配置文件
*/
Cache.prototype.config = function (options = {}) {
// 更新配置项
this.options = Object.assign(this.options, options)
}
// 实例化Cache对象
let cache = new Cache()
export {
cache,
Cache
}