Simplified distributed locking implementation using Redis. For more information, please see examples.
I came across a concurrency issue when multiple clients were accessing single redis instance. So I wanted a primitive locking solution, but redis did not have one implemented. So started looking for open source libraries and found redislock very well written and effective library. But it still did not solve my problem as I was using redigo client but the package used go-redis. Although redigo
had redsync
, I wanted a much more simpler one and so with redislock
.
- Simple and easy to use interface.
- Plug in any redis client of your choice by implementing the
RedisClient
interface. - Simple but effective locking for single redis instance.
Check out examples in for garyburd
and go-redis
clients.
Full documentation is available on GoDoc
Feel free to send a PR.