-
Notifications
You must be signed in to change notification settings - Fork 151
/
README.md.tpl
28 lines (20 loc) · 795 Bytes
/
README.md.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# redislock
[![Test](https://github.com/bsm/redislock/actions/workflows/test.yml/badge.svg)](https://github.com/bsm/redislock/actions/workflows/test.yml)
[![GoDoc](https://godoc.org/github.com/bsm/redislock?status.png)](http://godoc.org/github.com/bsm/redislock)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
Simplified distributed locking implementation using [Redis](http://redis.io/topics/distlock).
For more information, please see examples.
## Examples
```go
import (
"context"
"fmt"
"log"
"time"
"github.com/bsm/redislock"
"github.com/redis/go-redis/v9"
)
func main() {{ "Example" | code }}
```
## Documentation
Full documentation is available on [GoDoc](http://godoc.org/github.com/bsm/redislock)