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:
1 parent
2185a884b4
commit
42a7771f84
2 files changed
+10
-178
No files matched your search
@@ -57,7 +57,7 @@ export const WebUiDataRuntime = {
|
||||
return false;
|
||||
}
|
||||
|
||||
store.incr(key);
|
||||
store.set(key, count + 1);
|
||||
return true;
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user