Inspectopedia
 
2024.3

Incorrect required cache names definition

Warning
New
Last modified: 03 December 2024

Reports incorrect @Cache* annotation names.

At least one cache name should be provided per cache operation: @Cacheable("cache_name") or @Cacheable(cacheNames ="cache_name"). @CacheConfig#cacheNames() can be used for sharing common cache-related settings at the class level.