@oomol-lab/resource-cache - v0.1.4
    Preparing search index...

    Interface ProvidersCacheOptions

    interface ProvidersCacheOptions {
        decode: (value: unknown) => ProvidersResponse;
        environment?: string;
        load: (
            query: OomolQuery,
            validation: CacheValidation,
        ) => Promise<LoadResult<ProvidersResponse>>;
        locale: string;
        maxAge: number;
        schemaVersion: number;
    }

    Hierarchy

    Index
    decode: (value: unknown) => ProvidersResponse
    environment?: string

    Deployment environment used to separate hosts such as production and staging. Defaults to production.

    load: (
        query: OomolQuery,
        validation: CacheValidation,
    ) => Promise<LoadResult<ProvidersResponse>>

    Load the provider catalog; use request credentials only when the host endpoint requires them.

    locale: string

    Locale sent to the host loader and included in the cache identity.

    maxAge: number
    schemaVersion: number