In Spring Boot, the _____ annotation is used to indicate that a method's return value should be stored in the cache.

  • @CacheConfig
  • @CacheEvict
  • @CachePut
  • @Cacheable
In Spring Boot, the @Cacheable annotation is used to indicate that a method's return value should be stored in the cache. This annotation is applied to methods that you want to cache, and it allows you to specify caching parameters such as the cache name and the key. It is a fundamental annotation for caching in Spring Boot.
Add your answer
Loading...

Leave a comment

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