{"library":"redlock2","type":"library","category":null,"description":"A distributed lock implementation for Redis based on the Redlock algorithm. The current stable version is 4.x (note: 5.0.0-beta.3 is prerelease). It provides strong locking guarantees for both single-redis and multi-redis environments with fault tolerance. Key differentiators include built-in lock extension via the `using` API with abort signals, automatic retry with configurable jitter, and TypeScript types. Ships as ESM with CommonJS fallback since version 5.","language":"javascript","status":"maintenance","version":"5.0.0-beta.3","tags":["javascript","nodejs","redlock","distributed","lock","redis","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redlock2","imports":["import Redlock from 'redlock'","import type { Lock } from 'redlock'","import { ResourceLockedError } from 'redlock'","import { ExecutionError } from 'redlock'"]},{"cmd":"yarn add redlock2","imports":[]},{"cmd":"pnpm add redlock2","imports":[]}],"homepage":"https://github.com/amirsafiallah/node-redlock#readme","github":"https://github.com/amirsafiallah/node-redlock","docs":null,"changelog":null,"pypi":null,"npm":"redlock2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}