Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.74 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.74 KB

redislock

Build Status GoDoc Go Report Card License

Simplified distributed locking implementation using Redis. For more information, please see examples.

Motivation

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.

Features

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

Examples

Check out examples in for garyburd and go-redis clients.

Documentation

Full documentation is available on GoDoc

Contribution

Feel free to send a PR.