{"library":"do-with-redis-lock","type":"library","category":null,"description":"This is do-with-redis-lock version 3.2.0, a minimal, promisified library for distributed locking with Redis. It provides a simple `doWithRedisLock` function that acquires a lock via Redis SET NX PX and releases it after the callback resolves. Unlike heavyweight options (e.g., Redlock), this package has zero peer dependencies, no external lock manager, and focuses on a single atomic operation. Releases are infrequent but stable; the current major version (v3) dropped support for Node <18 and switched to ESM-only exports. Key differentiator: simplicity — no retry strategies, no lock extension — just a promise-based lock around an async function.","language":"javascript","status":"active","version":"3.2.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install do-with-redis-lock","imports":["import { doWithRedisLock } from 'do-with-redis-lock'","import { doWithRedisLock } from 'do-with-redis-lock'","import type { RedisLockOptions } from 'do-with-redis-lock'"]},{"cmd":"yarn add do-with-redis-lock","imports":[]},{"cmd":"pnpm add do-with-redis-lock","imports":[]}],"homepage":"https://github.com/Parsimotion/do-with-redis-lock#readme","github":"git://github.com/Parsimotion/do-with-redis-lock","docs":null,"changelog":null,"pypi":null,"npm":"do-with-redis-lock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}