Caching Articles
Articles covering caching strategies and implementation patterns using Spring Cache, Caffeine, and Redis.
-
How to Use Redis with Spring Boot - Implementation Patterns for Session Management, Caching, and Pub/Sub
Covers everything from basic RedisTemplate operations using spring-boot-starter-data-redis, to externalizing sessions with Spring Session, configuring Redis as a @Cacheable backend, and implementing Pub/Sub — organized by use case.
-
How to Use Spring Boot Caching - Easy Performance Improvement with @Cacheable
A practical guide covering Spring Cache Abstraction mechanics, how to use @Cacheable, @CacheEvict, and @CachePut, switching between Caffeine and Redis, and measuring hit rates with Micrometer, all with hands-on code. For beginner to intermediate developers who want to improve response latency from duplicate DB or external API calls with just a few annotations.