Tagged articles

Cacheable

7 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

Understanding Spring Cache’s @Cacheable Annotation

The article explains how Spring Cache, introduced after Spring 3.1, uses the @Cacheable annotation to declaratively cache method results, detailing each attribute such as cacheNames, key, keyGenerator, and unless, with code examples illustrating key generation and conditional caching.

Backend DevelopmentCacheableCaching
0 likes · 4 min read
Understanding Spring Cache’s @Cacheable Annotation
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
Java Architect Essentials
Java Architect Essentials
May 23, 2025 · Backend Development

Master SpringBoot Caching: How @Cacheable Simplifies Cache Management

This article explains how SpringBoot’s @Cacheable annotation automates cache handling, reducing boilerplate code, improving performance, and simplifying maintenance, while also covering related annotations like @CacheEvict and @CachePut, with practical code examples for user and product data caching in real-world applications.

CacheableCachingJava
0 likes · 6 min read
Master SpringBoot Caching: How @Cacheable Simplifies Cache Management