I am trying to use Spring Boot CacheManager
with Caffeine and some @Cacheable
annotated functions. In our tests, asynchronous calls to our controllers endpoints are having issues that seem to be related to the fact that we were using a non-asynchronous cache.
While doing some research, I have seen a lot of examples of using Caffeine manually with CompletableFuture
, but could not found nothing with AsyncCacheLoader
and Spring Boot CacheManager
and @Cacheable
annotation. It looks like Cache
and AsyncCache
have very distinct APIs. Is this possible to use the default Spring Boot CacheManager
asynchronously?
Thanks!