I want to use spring -cache with the guava cache, but I believe that the guava cache was marked by an outdated official spring document. I wonder why, they did not give any explanation.
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html#boot-features-caching-provider-guava
Spring decided to approve the switch to the Caffeine cache.
Caffeine replaces caching support in the Google Guava library with active support. Java 8+ version in standalone form.
You can find the corresponding problem with the solution for Spring tracker here: https://jira.spring.io/browse/SPR-13797
Corresponding commit in Spring framework github repo: https://github.com/spring-projects/spring-framework/commit/2bf9bc312ed1721b5978f88861c29cffc9ea407c