Redis adapter for the express-idempotency middleware, enabling idempotency key storage in Redis. v1.0.8, stable, low update cadence. Key differentiator: integrates seamlessly with express-idempotency middleware and supports both connection config and existing Redis instances, with configurable TTL. Alternatives require custom Redis integration.
npm install express-idempotency-redis-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the Redis adapter with the express-idempotency middleware, including connection and TTL configuration.
Pass only one of the two options.
Ensure async connect() is awaited before app.use().
Set ttl to your desired value in seconds.
Use connectionInstance with a pre-configured ioredis client if needed.
Pass connectionConfig (object with url) or connectionInstance (existing node-redis client).
import RedisAdapter from 'express-idempotency-redis-adapter' (default export).
Ensure Redis is running, or set REDIS_URL environment variable.
Use new RedisAdapter(options) and pass the instance.