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

想问下 doPut方法中本地缓存是更新,其余节点咖啡因缓存都是clear是为啥 #27

Open
BrighterAmmo opened this issue Apr 11, 2023 · 1 comment

Comments

@BrighterAmmo
Copy link

BrighterAmmo commented Apr 11, 2023

image
push方法是发布订阅的方式通知其他节点删除本地缓存,但是执行put方法的节点是做本地缓存的更新。为啥当前节点本地缓存和其余节点的本地缓存的操作要不一样呢?
主要想问下是出于哪种考虑

@springboot4
Copy link

任何更新操作都应该清掉其他节点的本地缓存。 只有节点读的时候才会写到本地缓存。
a节点更新,b节点也更新的话,还得考虑消息顺序。

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