# `Laev.SubtitleCache`
[🔗](https://github.com/alexdont/laev/blob/main/lib/laev/subtitle_cache.ex#L1)

In-memory cache of converted subtitle VTT, keyed by source. Prevents
re-downloading the same subtitle on every page reload — important for
OpenSubtitles, whose downloads count against a small daily quota.

# `fetch`

Return the cached VTT for `key`, else run `fun` (`-> {:ok, vtt} | {:error, _}`) and cache success.

# `init`

---

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