Skip to content

Commit

Permalink
batchKey: user_seed_bonus not expires
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Oct 3, 2024
1 parent f2cd69f commit 80132e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/Repositories/CleanupRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ private static function getAddRecordLuaScript(): string
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
Expand Down
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-24');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-10-04');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit 80132e9

Please sign in to comment.