Relative Content

Tag Archive for spring-bootconfigurationapplication.propertiesredis-cache

I want to use Redis cache with my Spring Boot project (consider 3.3.1 version). What exactly and bare minimum configurations required?

As we are aware of the auto configuration properties and features of Spring Boot application. According to my knowledge, adding only few properties in application.properties should be enough to connect to my local redis server.
I have gone through the spring document (https://docs.spring.io/spring-data/redis/reference/redis/redis-cache.html) it is mentioned to add RedisCacheManager beans and some connectionFactory as well. Why do i need to add this beans when spring boot is considered to be auto configuration?
Shouldnt be adding properties like below enough?