Skip to content

Glossary: Spring Boot Beyond the Basics

@CacheEvict

Also written: CacheEvict, allEntries

An annotation that removes one entry (by key) or every entry (`allEntries = true`) from a cache after the method runs, so readers don't see stale data.

Where the book teaches it

Related terms

@CacheableEvictionStale data