Inspectopedia Help

Incorrect required cache names definition

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.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Spring, 233.SNAPSHOT

Last modified: 13 July 2023