redlock-universal

JSON →
library 0.8.4 ·javascript
verified Jun 7, 2026

A production-ready distributed locking library for Redis and Valkey supporting all three major clients: node-redis, ioredis, and Valkey GLIDE. Version 0.8.4, stable and actively maintained. It uses the Redlock algorithm for fault-tolerant locks with automatic lock extension and cleanup. Key differentiator: universal client support while maintaining sub-millisecond performance (0.377ms latency, comparable to dedicated libraries). Includes TypeScript types, monitoring hooks, and optional LockManager for multi-node setups.