" +
"redis.call('hincrby', KEYS[1], ARGV[2], 1); " +
"redis.call...('hincrby', KEYS[1], ARGV[2], 1);
redis.call('pexpire', KEYS[1], ARGV[1]);
return...then redis.call(‘hincrby’, KEYS[1], ARGV[2], 1)则将该线程重入的次数++
redis.call(‘pexpire’, KEYS[1], ARGV[1])...then return nil;end 则直接返回nil 结束
local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1);
if (counter...= redis.call(‘hincrby’, KEYS[1], ARGV[3], -1) 如果是锁是当前线程所添加,定义变量counter,表示当前线程的重入次数-1,即直接将重入次数-1
if (