Redis session store for Express/Connect with optional encryption support. Current stable version is 4.0.5 (Node >= 8.0.0). Provides session storage using Redis, with features like TTL management, configurable serializers, and SCAN-based iteration. Unlike standard connect-redis, it includes a `secret` option in the store to encrypt session data at rest in Redis. The API is compatible with express-session and supports multiple Redis client libraries including redis, ioredis, and redis-mock. Updated irregularly; v4 introduced breaking changes from earlier versions.
npm install connect-redis-cryptoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up an Express session store with Redis and optional encryption using connect-redis-crypto.
Replace `const RedisStore = require('connect-redis-crypto');` with `const RedisStore = require('connect-redis-crypto')(session);`Always pass `secret` option to `RedisStore({ client, secret: 'your-secret' })`Do not rely on `session.expires` before request completion; consider using `disableTouch` if auto-TTL reset is undesirable
Use `redis` v2.x or `ioredis`; check the store's peer dependency range
Use `const RedisStore = require('connect-redis-crypto')(session);`Pass `secret` to `new RedisStore({ client, secret: 'mysecret' })`Ensure Redis is running and `client` is configured with correct host and port