View on GitHub

Redsync.go

Redis-based distributed mutual exclusion lock implementation for Go

Download this project as a .zip file Download this project as a tar.gz file

Redsync.go

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/fzzy/radix/redis.

Documentation

Contributing

Contributions are welcome.

License

Redsync.go is available under the Apache License, version 2.0.

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.