From 308cc93e6ac93e45440351dce8d6d9b69e481496 Mon Sep 17 00:00:00 2001 From: lgb <353856593@qq.com> Date: Mon, 24 Jul 2023 13:25:17 +0800 Subject: [PATCH] improve recordBatch reeis value --- app/Repositories/CleanupRepository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Repositories/CleanupRepository.php b/app/Repositories/CleanupRepository.php index d9e3b0f9..02f0daeb 100644 --- a/app/Repositories/CleanupRepository.php +++ b/app/Repositories/CleanupRepository.php @@ -138,7 +138,7 @@ for k, v in pairs(batchList) do local isBatchKeyNew = false if batchKey == false then batchKey = v .. ":" .. ARGV[4] - redis.call("SET", v, batchKey, "EX", 2592000) + redis.call("SET", v, batchKey, "EX", 3600*3) isBatchKeyNew = true end local hashKey @@ -151,9 +151,9 @@ for k, v in pairs(batchList) do else hashKey = ARGV[3] end - redis.call("HSETNX", batchKey, hashKey, ARGV[4]) + redis.call("HSETNX", batchKey, hashKey, 1) if isBatchKeyNew then - redis.call("EXPIRE", batchKey, 2592000) + redis.call("EXPIRE", batchKey, 3600*3) end end LUA;