Closed songpr closed 2 years ago
I know this is old, but this is expected behavior. The documentation clearly says maxAge does not preemptievely delete items from cache, but is only invoked when there is a get or set.
Yep. Working as intended. maxAge
is advisory, we don't set timers and delete things proactively.
The length function do not take maxAge into account. I would like to check valid length of item in cache but the length just return the invalid legth.
Below is test case in jest