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
Add counter to track global evictions across RAM and NVM cache
Summary:
When HybridCache is enabled, we don't have a global eviction counter (i.e. when an item is leaving the cache entirely due to eviction).
- `ram.evictions`: item evicted from ram cache but it can be inserted into nvm cache
- `nvm.evictions`: item evicted from nvm cache but it can be still in ram cache
- `ram.destructors`: item leaves the cache entirely either because of removal or eviction from ram; must enable itemDestructor
- `nvm.destructors` : item leaves the cache entirely either because of removal or eviction from nvm; must enable itemDestructor
In this diff, we add `cache.evictions`: item leaves the cache entirely because of evictions from ram or nvm. No need to enable itemDestructor.
Reviewed By: therealgymmy, jaesoo-fb
Differential Revision: D40909473
fbshipit-source-id: 4d61d1434f073c95ea59da3abfd4152b17b0f67c
0 commit comments