I have a method who's execution should clear two caches in my Spring+JCache+ehcache 3.5 project.
I tried:
@CacheRemoveAll(cacheName = "cache1")
@CacheRemoveAll(cacheName = "cache2")
public void methodToBeCalled(){
}
and
@CacheRemoveAll(cacheName = "cache1", cacheName = "cache2")
public void methodToBeCalled(){
}
In the first I get:
Duplicate annotation of non-repeatable type @CacheRemoveAll
In the second I get:
Duplicate attribute cacheName in annotation @CacheRemoveAll