@fastcampus/fastlock
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

/@fastcampus/fastlock/

    Package Sidebar

    Install

    npm i @fastcampus/fastlock

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    16.4 kB

    Total Files

    21

    Last publish

    Collaborators

    • heeok
    • hibiya
    • starr9622
    • iolo
    • soomtong
    • yoosoo
    • jaewon-noh
    • nodelay
    • sujinnn
    • rocio82