lua-resty-lrucache icon indicating copy to clipboard operation
lua-resty-lrucache copied to clipboard

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

Open aizuyan opened this issue 2 years ago • 1 comments

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.

aizuyan avatar Oct 15 '21 08:10 aizuyan

yes, they are atomic operations.

zhuizhuhaomeng avatar Oct 15 '21 08:10 zhuizhuhaomeng