# `HexpmMcp.Cache`
[🔗](https://github.com/joshrotenberg/hexpm-mcp/blob/main/lib/hexpm_mcp/cache.ex#L1)

ETS-based response cache with configurable TTL and periodic sweeping.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `clear`

Clear all cached entries.

# `fetch`

Fetch a cached value or compute it.

Returns the cached value if present and not expired, otherwise calls `fun`
and caches the result.

# `lookup`

Look up a cached value by key.

# `put`

Store a value in the cache.

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
