1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

Merge pull request #2383 from TedLau/patch-3

Update distributed-lock-implementations.md
This commit is contained in:
Guide 2024-05-01 16:21:51 +08:00 committed by GitHub
commit cbac102d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ OK
```
- **lockKey**:加锁的锁名;
- **uniqueValue**:能够唯一标锁的随机字符串;
- **uniqueValue**:能够唯一标锁的随机字符串;
- **NX**:只有当 lockKey 对应的 key 值不存在的时候才能 SET 成功;
- **EX**过期时间设置秒为单位EX 3 标示这个锁有一个 3 秒的自动过期时间。与 EX 对应的是 PX毫秒为单位这两个都是过期时间设置。