Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当方法打上@CacheRefresh,到了自动刷新缓存的时候该方法上的拦截器全部失效 #799

Open
myking520 opened this issue Aug 7, 2023 · 0 comments

Comments

@myking520
Copy link

JetCacheInterceptor 中
@OverRide
public Object invoke(final MethodInvocation invocation) throws Throwable {



CacheInvokeContext context = configProvider.newContext(cacheManager).createCacheInvokeContext(cacheConfigMap);
context.setTargetObject(invocation.getThis());
context.setInvoker(invocation::proceed);//此处导致在refresh的时候拦截器无法生效
context.setMethod(method);
context.setArgs(invocation.getArguments());
context.setCacheInvokeConfig(cac);
context.setHiddenPackages(globalCacheConfig.getHiddenPackages());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant