- @Cacheable - This is the new & important annotation that allows methods to cache the fetched data.
- For each time when the method is triggered cache will check for the specific data.
- Spring 3.1 caching strategy allows users to cache data based on certain conditions also called as 'Conditional caching'.
- @CacheEvict annotation is very much useful to clear the unused data from the cache buffer.
- Finally spring annotations cannot enable themselves automatically we have to enable it explicitly, similarly for caching also we have to enable the caching annotations by providing the following