redis-lock

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

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.