Skip to content

πŸ” Simplified distributed locking implementation using Redis

License

Notifications You must be signed in to change notification settings

dineshgowda24/redislock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.