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

feat(lock) exptime can be set per key

Open subnetmarco opened this issue 7 years ago • 2 comments

Closes #7.

subnetmarco avatar Sep 22 '16 00:09 subnetmarco

@agentzh any comments on this PR?

subnetmarco avatar Oct 16 '16 02:10 subnetmarco

I think it's a bit confusing to use the two words "timeout" and "exptime" in the same API since they are essentially the same thing in this context. I think you are actually proposing a per-key timeout value here, right? Then we can just accept a "timeout" argument in lock() to simply override the object-level default timeout setting. What do you think?

agentzh avatar Oct 16 '16 06:10 agentzh