A TypeORM cache provider backed by keyv, enabling pluggable cache storage (memory, Redis, MongoDB, etc.) for TypeORM v0.2.x. Version 1.1.3 is the latest stable release; the package is mature with no frequent updates. Unlike built-in TypeORM cache (only supports redis or ioredis), this library leverages keyv's adapter ecosystem, supporting multiple backends with a unified API. Ships TypeScript definitions and requires keyv v4 and TypeORM v0.2 as peer dependencies.
npm install typeorm-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic TypeORM connection using KeyvCacheProvider with optional Redis URL from environment variable.
Ensure keyv@4 and typeorm@~0.2.x are installed. Not compatible with TypeORM v0.3+.
Provide a URI like 'redis://...' for persistent caching.
Consider switching to TypeORM's built-in cache or an alternative if using TypeORM 0.3+.
Install compatible keyv: npm install keyv@4
Use new KeyvCacheProvider(undefined) or new KeyvCacheProvider() for default memory store