IFClite TypeScript API
    Preparing search index...

    Interface HazardResponseCache

    Cache hook, keyed by the exact request URL. Errors from it propagate. Only responses that decode, have the requested size and show a mapped class are stored, and only such entries are served: a response with no mapped class may come from an outage and is always fetched again. A cached reference response (rendering check) is served only within 5 minutes of its retrieval.

    interface HazardResponseCache {
        get(
            key: string,
        ):
            | CachedHazardResponse
            | Promise<CachedHazardResponse | undefined>
            | undefined;
        set(key: string, value: CachedHazardResponse): void | Promise<void>;
    }
    Index