Logo GenPRES

CachedResourceProvider Type

A resource provider that loads the resources on first use and caches them. With a TTL in minutes it loads them again after the TTL; without one the cache never expires. A failed load is cached as empty resources.

Constructors

Constructor Description

CachedResourceProvider(logger, loadAllResources, ttlMinutes)

Full Usage: CachedResourceProvider(logger, loadAllResources, ttlMinutes)

Parameters:
Returns: CachedResourceProvider
logger : Logger
loadAllResources : unit -> Result<LoadedResources, Message list>
ttlMinutes : int option
Returns: CachedResourceProvider

Instance members

Instance member Description

this.ReloadCache

Full Usage: this.ReloadCache

Type something to start searching.