this.log = log;
this.cacheKeyParameterIndex = cacheKeyParameterIndex;
}
public void advise(Invocation invocation) {
CacheLocator key = getKeyForInvocation(invocation);
Element cached = cache.get(key);
if(cached == null) {
log.debug("cache miss for {} using cache {}", key, cache.getName());
invocation.proceed();
Object result = invocation.getResult();