if redis.call('get', KEYS[1]) == ARGV[1] then return redis.call('del', KEYS[1]) else return 0 end. 它能保證查詢鎖是否存在和刪除鎖是原子操作 ...
確定! 回上一頁