Cache remote data in a LevelUP database with automatic refresh and TTL. Version 2.3.0 is the current stable release. Key features: returns cached value immediately regardless of age, automatically calls the getter periodically to check for new values, emits events when changes are detected, and drops items after a configurable TTL since last access. Unlike level-ttl-cache, this library refreshes values even if the key is not accessed, and emits change events. Breaking change in 2.0.0: switched from sublevel to subleveldown. Maintained by TehShrike, low activity.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Default export is the constructor. Use named import only if using named exports (not default).
CommonJS require returns the constructor function directly.
TypeScript with esModuleInterop: use default import if enabled, otherwise use import = require.
Basic setup: create LevelUP database, define a getter function, instantiate Cache, get a value, listen for changes, and stop the cache.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.