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
06f6a542f5
commit
f4dedf4803
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