oniyi-locker

1.0.3 • Public • Published

NPM info

dependencies

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

Package Sidebar

Install

npm i oniyi-locker

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

17.5 kB

Total Files

13

Last publish

Collaborators

  • bkroeger