You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indicate if an eviction is from hot or cold to Lifecycle eviction functions #39
I'm using Lifecycle to emit entry age metrics, it would be nice to distinguish between cold evictions and hot evictions so we can tag the metrics separately and more clearly see how the cache is performing.
I'm open to making a patch for this. For backwards compatibility it make sense to add provided methods to the Lifecycle trait with the new signature, and have them just call on_evict/before_evict?
Activity
arthurprs commentedon Jul 25, 2024
That makes sense. Although the hit ratio is still the most representative metric.
I'd accept such a change, barring any surprises in terms of invasiveness.
DenizUgur commentedon May 7, 2026
This would make sense for
iteras well.