{"library":"redis-lock","type":"library","category":null,"description":"Redis-based distributed locking primitive for Node.js, implementing the algorithm described in the Redis SETNX documentation. Fully non-blocking and asynchronous, designed for concurrency control in distributed systems. Current stable version: 1.0.0. Requires node-redis v4 (breaking change from earlier versions). Retry delay and timeout configurable. Lightweight with minimal dependencies. Used in production at errorception.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","locks","concurrency","redis","distributed"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-lock","imports":["const lock = require('redis-lock')(client);","const done = await lock('myLock');","await done();"]},{"cmd":"yarn add redis-lock","imports":[]},{"cmd":"pnpm add redis-lock","imports":[]}],"homepage":"https://github.com/errorception/redis-lock","github":"git://github.com/errorception/redis-lock","docs":null,"changelog":null,"pypi":null,"npm":"redis-lock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}