-
Hi, I use Caffeine combined with Spring Boot.
The issue is that sometimes retrieveCountry will throw an exception. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It sounds like you want to also use refreshAfterWrite. This allows the entry to be reloaded asynchronously and return the stale value, while using expiration to evict if inactive and beyond a usability threshold. Unfortunately this is not supported by Spring (spring-projects/spring-boot#41762), so you would need to use our APIs directly. |
Beta Was this translation helpful? Give feedback.
It sounds like you want to also use refreshAfterWrite. This allows the entry to be reloaded asynchronously and return the stale value, while using expiration to evict if inactive and beyond a usability threshold. Unfortunately this is not supported by Spring (spring-projects/spring-boot#41762), so you would need to use our APIs directly.