In Ehcache 3 there is no way of choosing an eviction policy. Each tier within the cache {heap, offheap, disk, cluster} is free to choose the most appropriate eviction policy given it’s implementation. The heap tier operates a biased sampling LRU scheme, the offheap and cluster use an LRU clock. Given that both of these are sampling based and therefore neither strict LRU or LFU, it was decided that configurability here wasn’t worth the implementation cost and that the bulk of users wouldn’t need this fine-grained control.
Given the modularity within Ehcache 3 if an LFU policy is a hard requirement, it should be possible for someone to build their own LFU evicting store implementation and plug it in as a third-party provider.
Chris
--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ehcache-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ehcache-users/48725490-ee59-468a-86c3-3abdfb2eba4bn%40googlegroups.com.
Could you provide your actual cache configuration (either XML or Java code) to help clarify your question?
Thanks,
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/0a4104c1-bead-41b7-a8ba-d927716fa8a9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/BLAPR20MB4177570622FDC659F7173419AEEF9%40BLAPR20MB4177.namprd20.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/CAPYjNSNuEqDGYR%3Dpjy60rwVfG_x4%3D-Atts5Nsy2-4Td2XQdnwg%40mail.gmail.com.