The _____ annotation in Spring Boot is used to perform a cache eviction operation when a method is executed successfully.

  • @CacheConfig
  • @CacheEvict
  • @CachePut
  • @Cacheable
In Spring Boot, the @CacheEvict annotation is used to perform a cache eviction operation when a method is executed successfully. This annotation is useful when you want to remove specific cache entries or clear the cache entirely after a successful method execution, ensuring that you always have up-to-date data in your cache.
Add your answer
Loading...

Leave a comment

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