|
@@ -38,6 +38,9 @@ public class EvictInterceptor implements Interceptor {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取 @CacheName 注解配置的 cacheName,注解可配置在方法和类之上
|
|
|
|
|
+ */
|
|
|
private String getCacheName(Invocation inv) {
|
|
private String getCacheName(Invocation inv) {
|
|
|
CacheName cacheName = inv.getMethod().getAnnotation(CacheName.class);
|
|
CacheName cacheName = inv.getMethod().getAnnotation(CacheName.class);
|
|
|
if (cacheName != null) {
|
|
if (cacheName != null) {
|