Abandoned Node.js caching library inspired by Nette framework, providing a unified interface for multiple storage backends (file, memory, Redis, browser local storage). Version 2.0.1 was the last release. No longer maintained since at least 2016. Requires Node >=0.9. Offers both synchronous and asynchronous storages with expiration features. Superseded by modern alternatives like node-cache, lru-cache, or ioredis-based caching.
npm install cache-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows synchronous cache usage with file storage, manual load/save, and fallback function.
Migrate to actively maintained caching libraries like node-cache, lru-cache, or cache-manager.
Use Node.js 0.9-0.12 or consider containerizing with an older Node version. Better: switch to a maintained library.
Explicitly install redis@0.8.x alongside cache-storage if using Redis storage.
Wrap callbacks in Promises manually or switch to a library with Promise support.
Avoid using in production or consult a lawyer. Prefer libraries with clear open-source licenses.
Ensure the path is correct: 'cache-storage/Storage/FileSyncStorage' (capital S).
Start Redis server or configure connection settings correctly.
Instantiate with: new Cache(new FileSyncStorage('./temp'), 'namespace');No dependency data recorded yet.