node-redis-lock

JSON →
library 1.0.1 ·javascript deprecated
verified Jun 7, 2026

This package provides a simple locking mechanism using Redis for Node.js applications. The current stable version is 1.0.1, released in 2012, and it is no longer maintained, with no releases in over a decade. Key features include acquire, renew, release, and check lock existence operations. The user must provide a custom value for the lock to ensure safe release by the owning host. It supports a configurable namespace and TTL but lacks promises or async/await support, being callback-based only. Unlike modern alternatives such as redlock (which offers distributed locks with automatic retry and fencing tokens), node-redis-lock is a minimal implementation intended for simpler use cases where strong consistency guarantees are not required.