Skip to content

Glossary: Spring Boot Beyond the Basics

@CachePut

Also written: CachePut

A Spring annotation that always runs the method and stores its new result in the cache. It suits a method that returns the updated object, though evicting the entry with `@CacheEvict` is simpler and harder to get wrong.

Where the book teaches it

Related terms

@Cacheable@CacheEvict