- Opt in per tool via metadata (e.g.,
cache: trueor{ ttl, slideWindow }). - Configure the store at app level: in‑memory or Redis (client or config).
- Cache keys include tool id and validated input; you can extend via hooks.
- Memory store is per‑process; prefer Redis in production.
slideWindowupdates the TTL on access; without it, TTL is absolute.- Hooks can decorate the key or short‑circuit on policy.