skip to Main Content

How to use Redis as L2 cache on Hibernate?

I have a spring boot application and need to setup Redis as l2 cache on hibernate. My prop file looks like: spring.jpa.properties.hibernate.cache.region.factory_class = package.CustomRegionFactory spring.jpa.properties.hibernate.cache.redisson.fallback=false I created a custom region factory because I don't want to use json or yaml…

VIEW QUESTION

Make Redis as optional

I am using spring boot with Redis.Redis is running as Docker container spring.cache.type=redis spring.redis.host=localhost spring.redis.port=6379 Redis is a memory DB, if it finds data in Redis based on the key, it retrieved from Redis otherwise go into actual db call.…

VIEW QUESTION
Back To Top
Search