Our great sponsors
-
Redis-Hibernate2ndLevelCache-SpringBoot
Implement Hibernate 2nd level Cache with Redis, Spring Boot, and Spring Data JPA
-
SpringBoot-RedisCache
Discontinued Implement Hibernate 2nd level Cache with Redis, Spring Boot, and Spring Data JPA [Moved to: https://github.com/pavankjadda/Redis-Hibernate2ndLevelCache-SpringBoot]
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Redisson
Redisson - Easy Redis Java client and Real-Time Data Platform. Sync/Async/RxJava/Reactive API. Over 50 Redis based Java objects and services: Set, Multimap, SortedSet, Map, List, Queue, Deque, Semaphore, Lock, AtomicLong, Map Reduce, Bloom filter, Spring Cache, Tomcat, Scheduler, JCache API, Hibernate, RPC, local cache ...
This blog post explains the process of implementing Redis Cache as Hibernate 2nd level cache using the Spring Boot, Spring Data JPA. Source code and config files are uploaded to Github.
$ git clone [https://github.com/pavankjadda/SpringBoot-RedisCache](https://github.com/pavankjadda/SpringBoot-RedisCache)$ cd SpringBoot-RedisCache$ docker-compose -f src/main/resources/docker/docker-redis.yml up
4. We use the open-source library Redisson to connect to Redis instance and use Redis as Hibernate 2nd level cache. Please see their Github repo for more information.