{"library":"idempotency-redis","type":"library","category":null,"description":"idempotency-redis (v1.5.1) is a Node.js library that guarantees idempotent execution of operations using Redis for shared state and distributed locking. It ensures that for a given idempotency key, only one execution occurs; concurrent calls with the same key replay the cached result (including errors). Built on ioredis and using Redlock for distributed mutex, it differentiates from simple Redis-based idempotency by handling concurrent requests, caching failures, and providing custom error handling callbacks. Released as stable (since v1), with peer dependency ioredis 5.x.","language":"javascript","status":"active","version":"1.5.1","tags":["javascript","idempotency","redis","redlock","ioredis","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install idempotency-redis","imports":["import { IdempotentExecutor } from 'idempotency-redis';","import { IdempotentExecutorCriticalError } from 'idempotency-redis';","const { IdempotentExecutor } = require('idempotency-redis');"]},{"cmd":"yarn add idempotency-redis","imports":[]},{"cmd":"pnpm add idempotency-redis","imports":[]}],"homepage":"https://github.com/foreverest/idempotency-redis#readme","github":"git://github.com/foreverest/idempotency-redis","docs":null,"changelog":null,"pypi":null,"npm":"idempotency-redis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}