We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f2df0 commit f753b48Copy full SHA for f753b48
README.md
@@ -1,6 +1,15 @@
1
## go redis分布锁实现
2
3
-download
+
4
+### 功能
5
+- redis客户端可传,默认用全局实例
6
+- 实现自动过期
7
+- 实现自动续租 (续租时间为过期时间的2/3)
8
+ - lua实现获得和过期时间设置原子操作
9
10
11
12
+### download
13
```shell
14
go get github.com/cr-mao/goredislock@v1.0.0
15
```
@@ -97,11 +106,6 @@ func main() {
97
106
98
107
99
108
100
-### 功能
101
-- redis客户端可传,默认用全局实例
102
-- 实现自动过期
103
-- 实现自动续租 (续租时间为过期时间的2/3)
104
- - lua实现获得和过期时间设置原子操作
105
109
110
111
0 commit comments