Closed scopatz closed 5 years ago
pinging this
LGTM but you might wait for @mariusvniekerk (or not, up to you)
I think it might be nice to get @mariusvniekerk's eyes on this :)
OK, I think this is ready for another look
ready for another look
LGTM
Ok, gonna push a release
The TTLCache only seems to remove expired entries if there is a mutating event (set / del) and not on access (get), see https://cachetools.readthedocs.io/en/latest/index.html?highlight=ttlcache#cachetools.TTLCache.
This means that if the cache size is not reached than old graphs can stick around indefinitely. I believe that this explains #14 and some of the related issues. Here is a fix to manually remove expired elements, if needed.