We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d043845 commit c34fb8cCopy full SHA for c34fb8c
source/scripts.ts
@@ -9,7 +9,7 @@ const scripts = {
9
increment: `
10
local totalHits = redis.call("INCR", KEYS[1])
11
local timeToExpire = redis.call("PTTL", KEYS[1])
12
- if timeToExpire <= 0 or ARGV[1] == "1"
+ if timeToExpire < 0 or ARGV[1] == "1"
13
then
14
redis.call("PEXPIRE", KEYS[1], tonumber(ARGV[2]))
15
timeToExpire = tonumber(ARGV[2])
0 commit comments