14.3.5.3. Clear the Cache
Invoke the
@CacheRemoveAll
method to clear all entries from the cache. An example of a method annotated with @CacheRemoveAll
is as follows
@CacheRemoveAll (cacheName = "statisticsCache") public void resetStatistics() { ... }
As displayed in the example, this annotation accepts an optional
cacheName
attribute.