From 80132e9ceaef09a53861021295a70e820b3c6011 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 4 Oct 2024 00:42:27 +0800 Subject: [PATCH] batchKey: user_seed_bonus not expires --- app/Repositories/CleanupRepository.php | 5 ++++- include/constants.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Repositories/CleanupRepository.php b/app/Repositories/CleanupRepository.php index d7e8659a..d954ff45 100644 --- a/app/Repositories/CleanupRepository.php +++ b/app/Repositories/CleanupRepository.php @@ -169,7 +169,10 @@ for k, v in pairs(batchList) do local isBatchKeyNew = false if batchKey == false then batchKey = v .. ":" .. ARGV[4] - redis.call("SET", v, batchKey, "EX", ARGV[5]) + redis.call("SET", v, batchKey) + if (k > 1) then + redis.call("EXPIRE", v, ARGV[5]) + end isBatchKeyNew = true end local hashKey diff --git a/include/constants.php b/include/constants.php index d5807eb8..fc1cb989 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@