Samantha Catania
Samantha Catania

Reputation: 5316

Caffeine 3 - Deprecation of CacheWriter

I have a SpringBoot app with a customized Caffeine cache. Specifically, this cache implements com.github.benmanes.caffeine.cache.CacheWriter to do some post processing after an item is added or removed to the cache. However, the CacheWriter class was removed in Caffeine 3.X with the recommendation to

Consider instead using Map compute methods for extending manual write and remove operations.

I have not found any examples on doing this properly. Has anyone managed to get it working successfully please?

Upvotes: 2

Views: 454

Answers (0)

Related Questions