0.0.2 • Published 4 years ago

@fastcampus/fastlock v0.0.2

Weekly downloads
601
License
MIT
Repository
github
Last release
4 years ago

fastlock

fast and simple distributed lock using redis

npm version

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...

0.0.2

4 years ago

0.0.1

4 years ago