mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-09-08 08:01:19 +00:00
So far, we've deferred proactively aging out expired entries from our TTL-based LRU caches, instead relying on the next lookup operation on the expired key to detect and replace the stale value. Recently we have been focused on keeping the memory footprint lower. This commit adds a periodic (every 30 seconds) background task that will determine all cache entries that have expired, and remove them from the cache.