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

keep the key never overrides

Open membphis opened this issue 8 years ago • 2 comments

never overrides the (least recently used) unexpired items in the store when running out of storage in the shared memory zone

membphis avatar Dec 04 '15 06:12 membphis

I think it's better to expose an option to let the user decide whether to use add or safe_add. Not every use case requires such strictness, for example, in the case of cache locks.

agentzh avatar Dec 04 '15 07:12 agentzh

@agentzh please take a look at first, add the test case later.

membphis avatar Dec 06 '15 02:12 membphis