skip to Main Content

Modify Spring's RedisCacheConfiguration

I'm setting the configuration of a Spring Data Redis Cache on application.properties using the spring.cache.redis.* keys. However, not everything is possible to be configured on application.properties and I'd like to get a reference to the RedisCacheConfiguration created by Spring and…

VIEW QUESTION

RedisTemplate Spring boot

I am going to store my token in redis RedisConfig @Configuration @EnableCaching public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName("127.0.0.1"); redisStandaloneConfiguration.setPort(6379); JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory(redisStandaloneConfiguration); return jedisConnectionFactory; } @Bean public RedisTemplate<String, String>…

VIEW QUESTION
Back To Top
Search