A leveldown implementation that wraps an underlying leveldown store with an LRU cache for improved get/put performance. Version 1.0.0 is the latest stable release. It proxies all leveldown methods while caching recently accessed key-value pairs. Key differentiators: simple drop-in replacement for leveldown in levelup; supports configurable cache size and manual cache clearing. Requires leveldown as a peer dependency.
npm install cachedownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setting default leveldown, creating levelup with cachedown, and basic put/get operations.
Set max size via instance.maxSize(number) or constructor options.
Pass leveldown as second argument: new cachedown(location, leveldown) or use setLeveldown() beforehand.
No fix needed; it's by design. Ensure critical data is always read from underlying store after restart.
Use 'new cachedown(location, leveldown)' or ensure default import is correct.
Install leveldown: npm install leveldown; then pass as second argument or call setLeveldown.
Ensure you are not using cachedown as the underlying leveldown instance; pass the original leveldown.