NestJS Simple Redis Lock

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

A distributed locking library for NestJS using a single Redis instance. Version 1.0.1 provides a simple lock/unlock API and a decorator-based approach for automatic locking around method execution. It offers configurable lock duration, retry interval, and max retries. Requires the 'nestjs-redis' package as a peer dependency and integrates with NestJS's module system. Compared to alternatives like 'redis-semaphore' or 'redlock', this package focuses on simplicity and tight NestJS integration with minimal configuration.