This commit is contained in:
YuTian 2024-07-22 19:22:09 +08:00
parent 11b08d8291
commit 22e35ef80a
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ public class RedisCacheSyncTimer {
try (Jedis jedis = jedisGetter.getRedis()) {
long lockResult = jedis.setnx(lockKey, "locked");
if (lockResult != 1) {
break;
continue;
}
jedis.expire(lockKey, LOCK_EXPIRE_SECONDS);
for (Map.Entry<Pair<String, String>, RedisCacheSynchronizer> entry1 : entry.getValue().getSynchronizers().entrySet()) {
@ -65,7 +65,7 @@ public class RedisCacheSyncTimer {
}
}
}
}.runTaskTimerAsynchronously(AuLib.inst(), 60L, 5 * 60 * 20L);
}.runTaskTimerAsynchronously(AuLib.inst(), 1200L, 5 * 60 * 20L);
}
public void registerSynchronizer(Plugin plugin, IJedisGetter jedisGetter, Pair<String, String> key, RedisCacheSynchronizer synchronizer) {

View File

@ -1,5 +1,5 @@
name: AuLib
main: com.io.yutian.aulib.AuLib
version: 2.5.1
version: 2.5.2
api-version: 1.18
author: SuperYuTian