feat: Implement caching mechanism with Cache struct and update related commands

This commit is contained in:
Tunglies
2025-09-17 19:37:42 +08:00
parent 1787d5372e
commit 6724f1ae35
6 changed files with 21 additions and 27 deletions

View File

@@ -1,9 +1,9 @@
use crate::{
cache::Cache,
config::Config,
core::{handle, timer::Timer, tray::Tray},
log_err, logging,
process::AsyncHandler,
state::proxy::ProxyRequestCache,
utils::logging::Type,
};
@@ -183,7 +183,7 @@ pub async fn entry_lightweight_mode() -> bool {
// 回到 In
set_state(LightweightState::In);
ProxyRequestCache::global().clean_default_keys();
Cache::global().clean_default_keys();
true
}