Cacheables

JSON →
library 3.0.1 ·javascript
verified Jun 7, 2026

Cacheables is a small, typed in-memory cache library (v3.0.1) written in TypeScript with zero dependencies. It wraps async functions with `remember()`, supporting five cache policies including stale-while-revalidate and concurrency-safe deduplication. A key differentiator is multilayer storage: stack a fast L1 memory bucket with any L2 (filesystem, Redis, S3) and cascading reads backfill missing layers. Fully typed with a generic TView projection. Released monthly on GitHub. Supports browser and Node.js >=18. ESM-only since v3.