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.

@CachePut@CacheableBackend
0 likes · 3 min read
How @CachePut Updates Cache in Spring Cache
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.

@CacheableBackend DevelopmentCaching
0 likes · 4 min read
Understanding Spring Cache’s @Cacheable Annotation
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.

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