Fetcher::Cache
Constants
Constructors
Keep instance constructor compatible with existing tests / usage that
create Cache instances. Instances are lightweight facades over their own
CacheStore so tests and callers that expect isolated caches continue to
work.
Constructor: keep backwards-compatible signature but allow injecting a
CacheStore. If store is provided, the Cache instance will wrap that
store (useful for sharing a store across many Cache instances). If not
provided, a new per-instance CacheStore is created (preserves legacy
behavior).
Class methods
Replace the default/shared store used by class-level Cache methods. This allows applications to inject a shared CacheStore instance for global caching without relying on global state construction.
Instance methods
Close the underlying CacheStore, stopping its owner fiber. Call this when the cache instance is no longer needed.