Tagged articles

CachePut

2 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Apr 4, 2026 · Backend Development

Mastering SpringBoot Cache Annotations: @Cacheable and @CacheEvict

This article explains why and how to use SpringBoot's built‑in cache annotations—@Cacheable, @CacheEvict, @CachePut and @Caching—covering environment setup, annotation attributes, practical code examples, common pitfalls, and a concise comparison to help developers simplify caching logic and keep data consistent.

AnnotationCacheEvictCachePut
0 likes · 9 min read
Mastering SpringBoot Cache Annotations: @Cacheable and @CacheEvict
Coder Trainee
Coder Trainee
Feb 17, 2026 · Backend Development

How @CachePut Updates Cache in Spring Cache

The article explains that @CachePut serves as a trigger to update or add cache entries in Spring Cache, contrasting its behavior with @Cacheable, detailing execution flow, handling of null results, and the recommendation against using both annotations on the same method.

CacheCachePutCacheable
0 likes · 3 min read
How @CachePut Updates Cache in Spring Cache