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

    Interface ActionsCacheOptions

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

    Hierarchy

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

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

    load: (
        query: ActionsQuery,
        validation: CacheValidation,
    ) => Promise<LoadResult<ActionsResponse>>

    Load the action 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