My cache is built with writer
:
appsCache = Caffeine.newBuilder()
.writer(this)
.maximumSize(10)
.expireAfterWrite(Duration.ofSeconds(64000))
.build(this);
In my test, I'm loading 10 items and then waiting (with an infinite loop + sleep).
The problem is that write()
never get called, even after calling cleanUp()
Why isn't write()
been triggered?