Skip to content

Commit

Permalink
user seed bonus batch key not expires
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Mar 26, 2024
1 parent e25e03b commit d1530f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/CleanupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private static function getAddRecordLuaScript(): string
hashKey = ARGV[3]
end
redis.call("HSET", batchKey, hashKey, ARGV[6])
if isBatchKeyNew then
if (isBatchKeyNew and k > 1) then
redis.call("EXPIRE", batchKey, ARGV[5])
end
end
Expand Down

0 comments on commit d1530f7

Please sign in to comment.