Node.js filesystem storage adapter for the node-ts-cache caching library. Version 4.4.0 works with node-ts-cache v5+. Provides a persistent cache backend using the local file system, useful for server-side caching where in-memory or Redis backends are not suitable. Unlike memory-based caches, it survives process restarts. Minimal configuration required; cache files are stored under the system's temporary directory by default. Release cadence is irregular, tied to node-ts-cache updates.
npm install node-ts-cache-storage-node-fsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a filesystem-backed cache and use it with the Cache decorator on a method.
Use node-ts-cache@5 or downgrade to node-ts-cache-storage-node-fs@3.x.
Specify a custom base path in constructor options.
Use `basePath` instead of `path` in constructor options.
Add 'experimentalDecorators: true' and 'emitDecoratorMetadata: true' to tsconfig.json.
Ensure both packages are compatible versions (node-ts-cache-storage-node-fs@4.x with node-ts-cache@5.x).
Install node-ts-cache: npm install node-ts-cache
Add "experimentalDecorators": true and "emitDecoratorMetadata": true to tsconfig.json.