Add abstract ManagedPeriodicWork

This commit is contained in:
Chris Eager
2021-06-04 14:00:14 -05:00
committed by Chris Eager
parent 5193abdab3
commit 88db808298
3 changed files with 147 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
-- keys: lock_key
-- argv: lock_value
if redis.call("GET", KEYS[1]) == ARGV[1] then
return redis.call("DEL", KEYS[1])
else
return 0
end