Preparing for system design interviews?  Try bugzed.com →

cajache

JSON →
library 2.0.2 ·javascript
verified Jun 7, 2026

cajache is a minimalistic in-memory caching library for JavaScript/TypeScript (v2.0.2, released 2023). It provides a simple API to cache any asynchronous function result, with optional TTL support and configurable expiration check intervals. Unlike larger caching libraries like node-cache or lru-cache, cajache has zero dependencies and is very lightweight (~1KB minzipped). Its key differentiator is the `.use()` method that automatically handles cache miss/miss logic, reducing boilerplate. The library supports persistent (no TTL) and time-based caching, multiple instances, and path-based caching for nested results. It ships TypeScript definitions.

total hits 21
actors 4 distinct systems
last hit 16d ago AhrefsBot
ByteDance
4
GPTBot
3
Amazonbot
3
Humans
10

top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇦 Canada