-- KEYS: [1]key
-- ARGV: [1]lockId

if redis.call("get",KEYS[1]) == ARGV[1] then
    redis.call("del",KEYS[1])
    return 1
else
    return 0
end
