@fastcampus/fastlock
v0.0.2
Published
fast and simple distributed lock using redis
Downloads
2
Keywords
Readme
fastlock
fast and simple distributed lock using redis
Getting Started
const { FastLock } = require('@fastcampus/fastlock');
const locker = FastLock.create({ redis: { host: 'localhost', port: 6379, db: 0 } });
const array = [];
locker.lock('locks:fastlock',5000);
array.push(1);
array.push(2);
locker.unlock();
Contributing
test
$ npm run ci:test
build
$ npm run build
watch(continuous build)
$ npm start
may the SOURCE be with you...