ttl-flat-cache-fixed

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

A lightweight, file-based caching library with Time-To-Live (TTL) support, built on top of flat-cache. Current version 1.0.1 provides convenient methods set(), get(), and del() that automatically handle expiration, while still exposing the underlying flat-cache API. It defaults to no expiry unless explicitly configured. Key differentiator is the simplicity of adding TTL to flat-cache without additional dependencies. The package ships TypeScript types.