Simple LRU (Least Recently Used) cache for Node.js. Current version 0.3.0, infrequent updates. Provides basic set/get/has/delete operations with configurable size and optional onRemove callback. No external dependencies. Similar to lru-cache but minimal API.
npm install kitten-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a cache instance, setting and getting values, checking existence, and deleting entries.
Monitor cache size manually or use a different library for strict size limits.
Use lru-cache or node-cache if TTL is needed.
Create own .d.ts file or use // @ts-ignore.
Run: npm install kitten-cache
Use: const Cache = require('kitten-cache');Instantiate: let cache = new Cache(); then cache.get('key');No dependency data recorded yet.