{"library":"redis-semaphore","type":"library","category":null,"description":"Redis-based distributed mutex (lock) and semaphore implementations for Node.js applications. Current stable version 5.7.0. Actively maintained with regular releases. Key differentiators: fully atomic operations using LUA scripts (fail-safe), built-in lock auto-refresh, optional lock-loss detection, and a simple API. Compared to alternatives like 'redlock', redis-semaphore offers more fine-grained control over lock timeout, acquire attempts, and refresh intervals, plus explicit lost-lock handling. Works exclusively with ioredis client. Ships TypeScript types.","language":"javascript","status":"active","version":"5.7.0","tags":["javascript","redis","redlock","mutex","semaphore","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-semaphore","imports":["import { Mutex } from 'redis-semaphore'","import { Semaphore } from 'redis-semaphore'","import { LockOptions } from 'redis-semaphore'","const { Mutex } = require('redis-semaphore')","import { Redis as IORedis } from 'ioredis'; client: IORedis"]},{"cmd":"yarn add redis-semaphore","imports":[]},{"cmd":"pnpm add redis-semaphore","imports":[]}],"homepage":"https://github.com/swarthy/redis-semaphore#readme","github":"ssh://git@github.com/swarthy/redis-semaphore","docs":null,"changelog":null,"pypi":null,"npm":"redis-semaphore","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}