{"repo":"SuppieRK/spring-boot-multilevel-cache-starter","free":true,"listed":false,"github":"https://github.com/SuppieRK/spring-boot-multilevel-cache-starter","clone":"git clone https://github.com/SuppieRK/spring-boot-multilevel-cache-starter.git","description":"Spring Boot multi-level caching with Redis and Caffeine","language":null,"stars":38,"topics":["spring-boot","spring","cache","caching","redis","microservices","two-level-cache","caffeine-cache"],"license":"MIT","category":"databases-storage","readme_excerpt":"Spring Boot multi-level cache starter Opinionated multi-level caching for Spring Boot that combines Redis for the distributed tier and Caffeine for the in-memory tier, guarded by a Resilience4j circuit breaker. Highlights - Drop-in starter – activates automatically when spring.cache.type=redis - Aggressive hot-path focus – randomized local TTL keeps Redis warm while preventing stampedes - Graceful degradation – circuit breaker keeps serving from Caffeine if Redis is slow or down - Batteries included – curated defaults so you only tweak what matters Usage Maven Gradle Examples - examples/basic-demo — minimal REST service demonstrating @Cacheable with the starter. Clone the repo, start Redis via docker compose up -d inside the example directory, then run ./gradlew :examples:basic-demo:bootRun from the project root. Use cases Suitable for - Microservices working with immutable cached entities under low latency requirements - The goal is to not only reduce the number of calls to external service but also reduce the number of calls to Redis Not a good fit for - Mutable cached entities - Entities with short time to live (< 5 minutes) - Cases when entities in local cache must outlive entities in distributed cache - Consider using only local cache instead - Cases when all calls to Redis must be synchronized with distributed locks Ideas - Use well-known Spring primitives for implementation - Microservices environment needs to fit the requirement of fault tolerance: - Redis calls cover","default_branch":null,"files":null,"tree":[],"storefront":"/r/SuppieRK","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SuppieRK/spring-boot-multilevel-cache-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}