The _____ annotation in Spring Boot is used to evict specific cache entries to avoid serving stale or outdated data.

  • @CacheInvalidate
  • @CacheEvict
  • @CacheRemove
  • @EvictCache
In Spring Boot, the @CacheEvict annotation is used to evict specific cache entries, ensuring that the application does not serve stale or outdated data from the cache. It allows you to specify which cache(s) to evict when a particular method is invoked. The other options are not standard annotations for cache eviction in Spring Boot.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *