1.0.0 • Published 7 years ago
rosmaro-redlock v1.0.0
Redlock for Rosmaro
This package makes it possible to use Redlock with Rosmaro.
Usage
The most important thing is to have a Redlock object. Please check its documentation for more details.
Then in order to make it compatible with Rosmaro, you need to build it this way:
const make_redlock_for_rosmaro = require('rosmaro-redlock')
const lock = make_redlock_for_rosmaro({
//the Redlock object to use
redlock,
//TTL long enough for method calls
ttl,
//unique id of the lock
resource
})
Installing
$ npm i rosmaro-redlock
1.0.0
7 years ago