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

配置了broadcastChannel ,syncLocal = true jvm缓存不失效 #851

Open
teqing6chu opened this issue Jan 13, 2024 · 3 comments
Open

配置了broadcastChannel ,syncLocal = true jvm缓存不失效 #851

teqing6chu opened this issue Jan 13, 2024 · 3 comments

Comments

@teqing6chu
Copy link

各位好,配置了broadcastChannel ,syncLocal = true 也设置了,redis也开启事件通知了,
jvmA中删除缓存后,jvmA1中的缓存还生效,没有失效
首次缓存数据时NotifyMonitorInstaller,在下图位置中return了,我用的springdata 请问还少了那儿的配置吗

20240113181204

@areyouok
Copy link
Collaborator

要配置成两级换成就是type=CacheType.BOTH

@teqing6chu
Copy link
Author

大佬好,我实际测试情况如下图
还有一个问题咨询一下,内存级的缓存要实现A和A1服务同时清空缓存
是否有暴露的监听接口或其他方法,我自己监听到本地缓存被删除,自己手动通过MQ清空其他jvm中的缓存
20240115104912

@areyouok
Copy link
Collaborator

这个功能只作用于cacheType=BOTH,其它的都没必要

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

2 participants