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?
spring.cache.type=redis
spring.cache.redis.cache-null-values=true
spring.data.redis.host=localhost
spring.data.redis.port=6379
Please explain. Thanks in advance.
This is in general question as well not only for Redis but to connect to any other application running in my local like Apache Kafka, Elastic Search. Isn’t adding only application.properties enough to connect this two applications?
Connect to Redis server running in local to my spring boot application.