Go
Switch branches/tags
Nothing to show
Clone or download
hjr265 Merge pull request #18 from keegancsmith/skip-delay
Skip delay on last try to lock
Latest commit 688f6d3 Jul 19, 2016
Permalink
Failed to load latest commit information.
redsync Skip delay on last try to lock Jul 19, 2016
.gitignore Initial commit May 20, 2014
LICENSE Initial commit May 20, 2014
README.md Update README.md Feb 20, 2016

README.md

Redsync.go

This package is being replaced with https://gopkg.in/redsync.v1. I will continue to maintain this package for a while so that its users do not feel abandoned. But I request everyone to gradually switch to the other package which will be maintained more actively.

Build Status

Redsync.go provides a Redis-based distributed mutual exclusion lock implementation for Go as described in this blog post. A reference library (by antirez) for Ruby is available at github.com/antirez/redlock-rb.

Installation

Install Redsync.go using the go get command:

$ go get github.com/hjr265/redsync.go/redsync

The only dependencies are the Go distribution and github.com/garyburd/redigo/redis.

Documentation

Contributing

Contributions are welcome.

License

Redsync.go is available under the BSD (3-Clause) License.

Disclaimer

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.