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.
Loading...
Related Quiz
- The _____ file in Spring Boot can be used to define configuration properties in YAML format.
- In a reactive Spring Boot application, _____ is used to handle back pressure in a reactive stream.
- What is the primary role of an OAuth2 Authorization Server in a Spring Boot application?
- Imagine you are resolving a dependency injection issue in a project. What approach and considerations would you take to resolve ambiguity in autowiring of beans and ensure that the correct bean is injected?
- What is the main purpose of Auto Configuration in Spring Boot?