Name: redsync
Description: Distributed mutual exclusion lock using Redis for Go
Created: 2016-02-02 03:30:12.0
Updated: 2018-01-19 06:30:20.0
Pushed: 2017-10-23 08:39:08.0
Homepage: http://redis.io/topics/distlock
Size: 11
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Redsync provides a Redis-based distributed mutual exclusion lock implementation for Go as described in this post. A reference library (by antirez) for Ruby is available at github.com/antirez/redlock-rb.
Install Redsync using the go get command:
$ go get gopkg.in/redsync.v1
The only dependencies are the Go distribution and Redigo.
Contributions are welcome.
Redsync is available under the BSD (3-Clause) License.
This code implements an algorithm which is currently a proposal, it was not formally analyzed. Make sure to understand how it works before using it in production environments.