Ensure that archives are evicted
Based on: !364 (merged)
This workarounds a bug in patrickmn/go-cache
https://github.com/patrickmn/go-cache/issues/48:
If an expired item is set, it will not be evicted.
It appears that Delete()
ensures that OnEvicted()
is called.
According to below graphs this happens quite frequently. The data is properly recycled, but gauges are not properly updated.
Edited by Kamil Trzciński