Skip to content

Cache

Fluent, type-safe function caching with tag-based invalidation — memory, Redis, or both.

Fluent API

Define cached functions with chainable .define() calls — fully type-safe with automatic inference.

Tag-Based Invalidation

Group cached results with tags and invalidate entire categories at once — cascading through nested calls.

Pluggable Backends

In-memory by default, Redis for distributed caching, or combine both for multi-layer performance.

Smart Deduplication

Concurrent calls to the same function are automatically coalesced — no thundering herd problem.