Initial commit of working RSS Aggregator build
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.releaseLock = void 0;
|
||||
const content = `--[[
|
||||
Release lock
|
||||
Input:
|
||||
KEYS[1] 'lock',
|
||||
ARGV[1] token
|
||||
ARGV[2] lock duration in milliseconds
|
||||
Output:
|
||||
"OK" if lock extented succesfully.
|
||||
]]
|
||||
local rcall = redis.call
|
||||
if rcall("GET", KEYS[1]) == ARGV[1] then
|
||||
return rcall("DEL", KEYS[1])
|
||||
else
|
||||
return 0
|
||||
end
|
||||
`;
|
||||
exports.releaseLock = {
|
||||
name: 'releaseLock',
|
||||
content,
|
||||
keys: 1,
|
||||
};
|
||||
//# sourceMappingURL=releaseLock-1.js.map
|
||||
Reference in New Issue
Block a user