Evaluating EvictionAdvisor upon Eviction

11 views
Skip to first unread message

Samuel Bussmann

unread,
Jun 24, 2025, 3:57:47 PMJun 24
to ehcache-users
Hello

We considered to use the EvictionAdvisor to keep certain elements in cache if possible.

But my understanding after investigating the implementation is that the Eviction-Advice is evaluated upon adding or updating an element to the cache and not during the eviction.
Is there a way to evaluate the advice upon eviction?

Beside the possibly better response time when not evaluating during adds, and the wasted effort if the cache doesnt fill up or is managed by manually removing obsolete elements, we'd have the requirement to re-evaluate for every eviction attempt.

Is there a specific reason to evaluate the advice early, or could this be changed/added to evaluate upon eviction?

best regards
Samuel

Reply all
Reply to author
Forward
0 new messages