Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Description
Currently, AgeOutCache uses 1 task for every element. Change this to 1 task for all elements, so we reduce the number of tasks in the timer.
AgeOutCache is used e.g. in TP, to see if we've recently requested fetching of a physical address from the discovery protocol, to suppress too many discovery requests.
The task would be started whenever add() is called and a task is not yet already running. After all elements have expired, the task would terminated until the next add() is called.