Redis分布式锁 命名规范化

v1.4.1
Parker 4 years ago
parent 6d995308c4
commit cbe7c5c85f

@ -111,7 +111,7 @@ public class RedisLockImpl implements RedisLockPlugins {
*/
private RedisLock tryLock(RedisLock redisLock,String identifier) {
try {
List<String> keys = Collections.singletonList("lock:" + redisLock.getLockName());
List<String> keys = Collections.singletonList(redisLock.getLockName());
long acquireTimeEnd = System.currentTimeMillis() + redisLock.getAcquireTimeOut();
boolean acquired = false;
// 尝试获得锁

Loading…
Cancel
Save