Redis session store for Connect/Express, v9.0.0. Provides persistent session storage using Redis backend. Requires express-session and redis v5+. Active maintenance, releases follow express-session updates. Key differentiator: widely used, supports Express 4.x/5.x, custom TTL, serializers, and Redis SCAN for list operations. Ships TypeScript types.
npm install connect-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Express session with RedisStore, using named import, async client connection, and required session config options.
Migrate to redis v4+ or v5, use async client.connect() and promise-based API.
Convert project to ESM or use dynamic import().
Use named import: import { RedisStore } from 'connect-redis'.Call await redisClient.connect() after createClient and before new RedisStore.
Set prefix either on client or on RedisStore, not both.
Manually set session.cookie.expires or use dynamic TTL callback.
Replace redis package with 'redis' v4+ and update API calls.
Import { RedisStore } from 'connect-redis'Await client.connect() before instantiating RedisStore
Ensure a valid redis client is provided: client: createClient()
Add app.use(session({... store: redisStore ...}))