Skip to content

Commit

Permalink
修改集群锁文档
Browse files Browse the repository at this point in the history
  • Loading branch information
WhaleSong committed Nov 10, 2021
1 parent 29418f2 commit c7a44df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/zh/component_specs/lock/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ docker run -itd --name redis-test -p 6380:6379 redis
| --- | --- | --- |
| redisHosts | Y | redis节点地址,多个节点以','隔开,例如localhost:6381,localhost:6382 |
| redisPassword | Y | redis密码,多个节点共用 |
| concurrency | Y | redis集群锁操作中协程池并发度,用于控制并发加锁协程数,默认为cpu核数 |
其他配置与redis单点一致
| concurrency | N | redis集群锁操作中协程池并发度,用于控制并发加锁协程数,默认为cpu核数 |

## 关于集群锁
使用红锁算法实现
Expand Down

0 comments on commit c7a44df

Please sign in to comment.