I have a Spring Boot Web application and using spring session with a redis store. The web requests sometimes need their responses to be cached (to avoid unnecessary db trips) and I planned to use Caffeine.
However it seems Redis takes over (as soon as I include the gradle dependency) as a caching implementation as all my TTL set for Caffeine are ignored.
Is it even possible / recommendable to use more than 1 Cache provider in a Spring Boot application? I could try to use Redis for all the caches, just worry that it will affect the session implementation which comes with Spring Boot (I didn't configure anything there just used @EnableRedisHttpSession).
I appreciate any advice on this.