CacheLRU contains maximum size items
Eviction policy:
User can be informed about evicted entries via cache event list.
Implemented as HashMap and multi-dlist.
HashMap keeps
dlist keep key, creation timestamp (to check expiration)
Each element in dlist have two sets of double-links - first set create order by access time, second set for creation time.
See Source File
CacheLRU contains maximum size items
Eviction policy:
evict TTL-ed entry (if TTL enabled), otherwise
if oldest entry not expired - evict oldest accessed (LRU)
User can be informed about evicted entries via cache event list.