---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by fang.
--- DateTime: 2025/3/21 16:27
---

--- 获取redis中存的id

--- 获取UUID+当前线程id,通过参数传进来
if(redis.call("get", KEYS[1])==ARGV[1]) then
    --- 一致删除锁，并放回1
    return redis.call("del", KEYS[1])
end
--- 不一致返回0
return 0
