1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

Update distributed-lock-implementations.md

标示似乎应该是标识
This commit is contained in:
TedLau 2024-05-01 13:53:12 +08:00 committed by GitHub
parent 52cce06e41
commit a0546281de
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毫秒为单位这两个都是过期时间设置。