Skip to content

Commit

Permalink
Merge pull request #2383 from TedLau/patch-3
Browse files Browse the repository at this point in the history
Update distributed-lock-implementations.md
  • Loading branch information
Snailclimb authored May 1, 2024
2 parents 52cce06 + a054628 commit cbac102
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ OK
```

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

Expand Down

0 comments on commit cbac102

Please sign in to comment.