所以我正在升级一个spring boot项目以使用最新版本的ehcache(3.0)。但是,我似乎无法找到我想要的东西。我希望能够将驱逐政策设置为LRU,但我似乎无法在文档中找到任何驱逐政策。在链接中,他们谈论OddKeysEvictionAdvisor。如果有人能指出我正确的方向,那将非常感激。
http://www.ehcache.org/documentation/3.0/eviction-advisor.html
答案 0 :(得分:1)
In Ehcache 3.0.x there is no configurable eviction policy.
The eviction advisor really is a way to hint that some cache mappings should be kept over others, and as the API shows, this does not include mapping metadata, only key and value.