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

question: Does lua-resty-lrucache's get/set method are atomic operations? #53

Open
aizuyan opened this issue Oct 15, 2021 · 1 comment

Comments

@aizuyan
Copy link

aizuyan commented Oct 15, 2021

Does lua-resty-lrucache's get/set method are atomic operations?

In same worker process, Does this happen:
lrucache key X store a string, two request get and set lrucache sametime, get not complete X value.

@zhuizhuhaomeng
Copy link
Contributor

yes, they are atomic operations.

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