On a REST API, I want to create a single endpoint that clears a specific cache:
DELETE /cache/{cacheName}
Is it possible to implement it instead of:
public void clearCache(String cacheName) {
cacheManager.getCache(cacheName).clear();
}
to something like this?
@CacheRemoveAll
public void clearCache(String cacheName) {}
So I'm avoiding injecting the CacheManager
.