diff --git a/opsli-plugins/opsli-plugins-redis/src/main/java/org/opsli/plugins/redis/lock/RedisLockImpl.java b/opsli-plugins/opsli-plugins-redis/src/main/java/org/opsli/plugins/redis/lock/RedisLockImpl.java index ba02ca4..ba36276 100644 --- a/opsli-plugins/opsli-plugins-redis/src/main/java/org/opsli/plugins/redis/lock/RedisLockImpl.java +++ b/opsli-plugins/opsli-plugins-redis/src/main/java/org/opsli/plugins/redis/lock/RedisLockImpl.java @@ -111,7 +111,7 @@ public class RedisLockImpl implements RedisLockPlugins { */ private RedisLock tryLock(RedisLock redisLock,String identifier) { try { - List keys = Collections.singletonList("lock:" + redisLock.getLockName()); + List keys = Collections.singletonList(redisLock.getLockName()); long acquireTimeEnd = System.currentTimeMillis() + redisLock.getAcquireTimeOut(); boolean acquired = false; // 尝试获得锁