14.3.4.3.2. Specify the Cache Used
Add the following optional attribute (
cacheName) to the @CacheResult annotation to specify the cache to check for results of the method call:
@CacheResult(cacheName = "mySpecialCache")
public void doSomething(String parameter) {
...
}
@CacheResult(cacheName = "mySpecialCache")
public void doSomething(String parameter) {
...
}