Caffeine Articles
2 articles about Caffeine. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Configure and Tune Caffeine Cache in Spring Boot - From expireAfterWrite and maximumSize to Production Operations with stats()
A practical guide to tuning Caffeine cache per-cache in Spring Boot. Covers the distinction between expireAfterWrite and expireAfterAccess, size management with maximumSize and Weigher, asynchronous refresh with refreshAfterWrite, and hit ratio monitoring with recordStats() and Micrometer — everything you need to know before going to production.
-
How to Use Spring Boot Caching - Easy Performance Improvements with @Cacheable
A hands-on guide covering how Spring Cache Abstraction works, how to use @Cacheable, @CacheEvict, and @CachePut, switching to Caffeine and Redis, and measuring hit rates with Micrometer, all with practical code examples. Aimed at beginner-to-intermediate developers who want to fix response latency caused by redundant DB or external API calls with just a few lines of annotations.