Eviction policies seem to be removed in EhCache3. There is an EvictionAdvisor interface that can be implemented, but what would be the default behaviour?
I am using EhCache3 with SpringBoot.
The exact eviction algorithm depends on the tier configuration. As such Ehcache does not detail it explicitly to enable tweaking it in the future.
Eviction advisors are an opt-in way of saying that some elements should really remain in the cache over others. It effectively means they are not considered by the eviction algorithm unless no eviction candidates can be found. Note that it is an advanced feature that can have quite severe performance effect if you end up advising against eviction a large portion of the cache.
And as said in another answer, there is no default - that is by default all entries are treated equal and subject to the internal eviction algorithm