Effect Cache

Cache effectful lookups in memory with Cache and ScopedCache — capacity/LRU eviction, fixed or exit-aware TTL, deduplicated concurrent lookups, refresh/invalidation, and resource-owning entries with per-entry scopes. Use when memoizing effectful lookups by key, adding TTL caching to API or DB reads, deduplicating concurrent fetches of the same key, or caching values that own resources such as connections.

mpsuesser Updated 8 repo stars

File contents

mpsuesser/opencode-effect-enforcer commit 037829e3a7

Frequently asked questions

npx get-skill add mpsuesser/effect-cache