I wanted to use the @Cacheable annotation for Spring Boot 1.5, without any external cache provider. How do I set the TTL for the simple provider case?
According to this question and other resources online, I can use Guava's CacheBuilder
to set the expiry by providing a CacheConfiguration
.
However, it seems Guava Cache is deprecated by Spring. So without Guava, how does one set the TTL for a simple Spring cache?