v2.6
This commit is contained in:
parent
1148cdbb2e
commit
f4ba9d0285
|
@ -33,7 +33,7 @@ public class RedisCacheSyncTimer {
|
|||
PluginInfo pluginInfo = entry.getValue();
|
||||
String lockKey = LOCK_KEY + "_" + plugin.getName();
|
||||
IJedisGetter jedisGetter = pluginInfo.getJedisGetter();
|
||||
try (Jedis jedis = jedisGetter.getRedis()) {·
|
||||
try (Jedis jedis = jedisGetter.getRedis()) {
|
||||
long lockResult = jedis.setnx(lockKey, "locked");
|
||||
if (lockResult != 1) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue
Block a user