Skip to main content

Import

Constructor

Config options

Methods

set options

getStats return value

Examples

Basic read-through cache

Per-entry TTL override

Pattern invalidation

Stale-while-revalidate

Monitoring cache performance

Call prune() on a timer if you cache many short-lived entries. This keeps memory usage predictable without affecting read performance.
RequestCache is an in-memory store. For persistent or cross-tab caching, see CacheManager.