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

缓存一致性,先更新数据库在更新缓存 #1

Open
q996676479 opened this issue Feb 7, 2020 · 0 comments
Open

缓存一致性,先更新数据库在更新缓存 #1

q996676479 opened this issue Feb 7, 2020 · 0 comments

Comments

@q996676479
Copy link

A线程更新完数据库,然后时间片给线程B了,这时B线程刚开始请求(拿到的是最新的版本号),更新完数据库和缓存,这时A再去更新缓存。这时不会发生不一致吗。

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