как я могу получить cacheKey при использовании Spring cache? Например, следующий код: как должна быть реализована эта функция (getCacheKey ())?
@Around("@annotation(org.springframework.cache.annotation.CachePut)")
public Object processCachePut(ProceedingJoinPoint point) throws Throwable {
Method realMethod = getRealMethod(point);
Object result = point.proceed();
String notice = null;
if (realMethod.isAnnotationPresent(CachePut.class)) {
CachePut cachePut = realMethod.getDeclaredAnnotation(CachePut.class);
String key = getCacheKey();
}
return result;
}