A lightweight in-memory key-value cache with automatic eviction, inspired by Unix page-stealing. Stores references with a configurable TTL; entries are marked and stolen after 1–2 TTL cycles if not accessed. Types included. Current version 1.0.6, maintained by habibouldmoussa. Simple API (set, get, delete, destroy). Differentiator: automatic eviction without manual cleanup, suitable for ephemeral data.
npm install cache-istosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: instantiate with TTL, set/get/delete values, and clean up.
Set `unref: true` in options or call `stealer.destroy()` explicitly.
Always check if the returned value is undefined before using it.
Design your application to tolerate eventual consistency of cache eviction.
npm install @habibouldmoussa/cache_istos
Use default import: import Stealer from '@habibouldmoussa/cache_istos'
Ensure package is installed and you have the correct import statement
No dependency data recorded yet.