缓存清除全部方法优化

This commit is contained in:
YeMingfei666 2024-12-30 17:38:00 +08:00
parent d12f35e078
commit f237774e0e
1 changed files with 3 additions and 7 deletions

View File

@ -113,13 +113,9 @@ const $cache={
config:$cache_config
}
export function cacheClearAll() {
console.log($cache_index);
$cache_index.clear()
$cache_video.clear()
$cache_renwu.clear()
$cache_chasingDrama.clear()
$cache_user.clear()
$cache_config.clear()
for(let i in $cache){
$cache[i].clear()
}
}
export function cacheClear(arr){
if(typeof arr==='string'&&$cache[arr]){