Skip to main content

Function: createSitesCacheGetter()

createSitesCacheGetter(input: CreateSitesCacheGetterInput): () => StandardizedCache<Site>

Defined in: electron/services/ServiceContainer.siteCacheAccessor.ts:30

Creates a defensive getSitesCache accessor.

Parameters

input

CreateSitesCacheGetterInput

Returns

(): StandardizedCache<Site>

Returns

StandardizedCache<Site>

Remarks

MonitorManager depends on a sites cache accessor. This helper intentionally throws if the container is in an inconsistent state (for example: a circular dependency during bootstrap). That keeps failures loud and early rather than failing later with confusing undefined property access.