redis-sp

JSON →
library 1.3.2 ·javascript
verified Jun 7, 2026

redis-sp (Synchronization Primitives) is a TypeScript library providing distributed mutex and counting semaphore implementations based on the Redlock algorithm. Version 1.3.2, released in 2021, is the latest stable release with no active development observed. It relies on ioredis clients and uses Redis Lua scripts for atomicity, avoiding race conditions common in other implementations. Differentiates from alternatives like 'redlock' by offering both mutex and semaphore primitives with TypeScript support.