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 037829e 28.5 KB Updated

File contents

mpsuesser/opencode-effect-enforcer/tree/main/skills/effect-cache commit 037829e3a7

Frequently asked questions

npx skillmds@latest add mpsuesser/effect-cache