{"library":"ts-safe-redis-leader","type":"library","category":null,"description":"A TypeScript library for distributed Redis leader election with race-condition-free guarantees. Version 0.0.5 is the latest stable release; the project appears to be a fork of safe-redis-leader with TypeScript support, new events (elected/notElected), and tests verifying single-leader-at-a-time. Key differentiators include async/await API, removal of race conditions from the original redis-leader package, and Jest-based testing against a real Redis instance via Docker Compose. The library is small, focused, and suitable for Node.js applications needing reliable leader election without external dependencies beyond ioredis.","language":"javascript","status":"active","version":"0.0.5","tags":["javascript","redis","leader","elections","distributed","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ts-safe-redis-leader","imports":["import { SafeRedisLeader } from 'ts-safe-redis-leader';","import { SafeRedisLeader } from 'ts-safe-redis-leader';","const { SafeRedisLeader } = require('ts-safe-redis-leader');"]},{"cmd":"yarn add ts-safe-redis-leader","imports":[]},{"cmd":"pnpm add ts-safe-redis-leader","imports":[]}],"homepage":"https://github.com/Nesci28/safe-redis-leader/blob/master/README.md","github":"https://github.com/Nesci28/safe-redis-leader","docs":null,"changelog":null,"pypi":null,"npm":"ts-safe-redis-leader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}