Redlock

JSON →
library 5.0.0-beta.3 ·javascript maintenance
verified Jun 7, 2026

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.