exframe-cache-manager is a cache management library for the Exframe framework, version 2.2.2. It provides a unified API for managing caching layers (e.g., in-memory, Redis) with features like TTL, invalidation, and multi-tier support. Release cadence is irregular, tied to Exframework releases. Key differentiators include deep integration with exframe-health and exframe-logger for observability. Requires exframe-service for lifecycle management. Exclusive to Node.js; no browser support.
npm install exframe-cache-managerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a CacheManager instance with in-memory cache, dependency injection via exframe-service, and basic set/get operations.
Convert require() to import. Ensure 'type': 'module' in package.json or use .mjs extension.
Replace { driver: 'redis' } with { type: 'redis' }.Wrap adapter with Service: new CacheManager(service, { cache: adapter }).Use named import: import { CacheManager } from 'exframe-cache-manager'.Run npm install exframe-cache-manager @exframe/health @exframe/logger @exframe/service (peer deps required).
Use named import: import { createCache } from 'exframe-cache-manager'.Create a Service instance first: const service = new Service('name', { logger, health }); const manager = new CacheManager(service, { cache }).