cache-ts

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

cache-ts v1.0.0 is a lightweight, TypeScript-native cache implementation that extends the built-in Map class with automatic capacity control and LRU-like eviction. It provides a simple constructor taking a maximum capacity, and standard set/get operations that promote recently accessed entries. Unlike heavier caching libraries, it has zero dependencies and ships inline TypeScript declarations. Currently stable with low release cadence; suitable for small to medium caching needs where simplicity and type safety are prioritized over advanced features like TTL or persistence.