Refactor Store to use per-key timers for expiration

Simplifies the Store implementation by removing batch expiration scanning and using per-key setTimeout timers for key expiration. This change improves code clarity and ensures more precise key expiration handling.
This commit is contained in:
手瓜一十雪 committed 2025-11-03 17:06:44 +08:00
1 parent 2185a884b4
commit 42a7771f84
2 files changed
+10 -178

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export const WebUiDataRuntime = {
return false;
}
store.incr(key);
store.set(key, count + 1);
return true;
},