Lock and unlock resources based on redis keys.
This module allows you to lock and unlock resources. It uses redis to store locks and also expire them. When trying to aquire a lock on an already locked resource, the client can subscribe to an unlock event to get notified as soon as the resource was released. Releasing a resource is restricted to those owning a resource specific key.
Install
$ npm install --save oniyi-locker
Usage
coming soon!
https://engineering.gosquared.com/distributed-locks-using-redis http://redis.io/topics/distlock
License
MIT © Benjamin Kroeger