An Express session store that leverages node-cache-manager, allowing you to plug in any supported caching backend (Redis, Memcached, MongoDB, etc.) with a unified API. Version 1.0.2 is the latest stable release; the package is updated infrequently. It provides a clean integration for Express sessions with flexible storage options, unlike express-session's default MemoryStore, which is not suitable for production.
npm install express-session-cache-managerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Express with a session store backed by cache-manager (using in-memory store) and tracks page views.
Use 'import CacheManagerStore from 'express-session-cache-manager'' and instantiate with 'new'.
Set TTL in the cache-manager caching options (e.g., cacheManager.caching({ store, ttl: 3600 })).Use a cache-manager store engine (e.g., cache-manager-redis) instead of express-session's MemoryStore.
Implement custom session middleware or use a store that supports 'touch'.
Remove calls to 'clear_expired'.
Change import to default import: import CacheManagerStore from 'express-session-cache-manager'
Ensure you pass a valid cache-manager store engine instance (e.g., cache-manager-redis).
Install cache-manager: npm install cache-manager
Install express-session: npm install express-session