Provides an in-memory cache provider for TypeORM, wrapping node-cache. Version 1.0.2 is the latest stable release. This package is a thin wrapper around node-cache, offering simplicity and minimal configuration. It is suitable for development or single-process applications, but lacks distributed cache features found in alternatives like ioredis or redis. No significant release cadence; appears unmaintained since 2020.
npm install typeorm-in-memory-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure TypeORM to use the in-memory cache provider with a default node-cache instance.
Consider using typeorm's Redis or ioredis cache provider for distributed setups.
Run npm install node-cache if you encounter errors.
Check TypeORM version compatibility; use with TypeORM 0.2.x only. For 0.3.x, consider using TypeORM's built-in caching or another cache provider.
Use import statement or set type: 'module' in package.json.
Ensure import statement is correct: import InMemoryCacheProvider from 'typeorm-in-memory-cache';
Run npm install node-cache to explicitly install it.