ernadh / redsync

Distributed mutual exclusion lock using Redis for Go

Home Page:http://redis.io/topics/distlock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redsync

Build Status

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.

Installation

Install Redsync using the go get command:

$ go get gopkg.in/redsync.v1

The only dependencies are the Go distribution and Redigo.

Documentation

Contributing

Contributions are welcome.

License

Redsync 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.

About

Distributed mutual exclusion lock using Redis for Go

http://redis.io/topics/distlock

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%