skip to Main Content

Programmatic RedissonClient in Spring boot project

I am trying to implement Hibernate second level caching in a Spring boot project using Redisson. I have followed this blog as a reference https://pavankjadda.medium.com/implement-hibernate-2nd-level-cache-with-redis-spring-boot-and-spring-data-jpa-7cdbf5632883 Also i am trying to initialize the RedissionClient programmatically and not through declaratively /through a…

VIEW QUESTION

Boot springboot app even if mongodb is down

I am using SpringBoot v2.7.0 I have following springboot config spring: data: mongodb: uri: ${MONGO_DB_URL} database: ${MONGO_DB_DATABASE} There is not explicit beans configurations. I have repositories for respective documents which extends MongoRepository<ModelNameClass, IDType> This is all working fine. But now…

VIEW QUESTION

Connection to Redis Cache using Spring Data Redis

I am trying to connect to Redis Cluster using Spring Data Redis. Below are is how I configured it. import org.springframework.data.redis.connection.RedisStandaloneConfiguration; import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; @Configuration public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory(){ RedisStandaloneConfiguration config= new RedisStandaloneConfiguration("server",portno);…

VIEW QUESTION
Back To Top
Search