Simple cache config handling for your app or module. Version 0.6.0 is the latest stable release (last updated in 2018). It extends the `conf` package to add caching capabilities: supports maxAge (TTL) per key, version-based invalidation, and expiration checks. Use when you need persistent configuration with automatic cache expiry. Not actively maintained; consider alternatives like `conf` with manual caching or updated packages.
npm install cache-confNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: setting a key with maxAge, retrieving before and after expiry, using ignoreMaxAge, and checking expiration with isExpired.
Use `const CacheConf = require('cache-conf');` or for TypeScript, use `import CacheConf = require('cache-conf');`.Consider migrating to `conf` and implementing your own caching, or use a maintained alternative.
Set keys individually with separate options if different maxAge per key is needed.
Use individual `set` calls for keys that need version differentiation.
Use `new CacheConf()` or `new (require('cache-conf'))()`Use CommonJS require, or configure bundler to handle CommonJS. For TypeScript: `import CacheConf = require('cache-conf')`Switch to CommonJS `require` or use a transpiler/polyfill.