Interface Cache

    interface Cache {
        add(request: RequestInfo | URL): Promise<void>;
        addAll(requests: RequestInfo[]): Promise<void>;
        addAll(requests: Iterable<RequestInfo>): Promise<void>;
        delete(
            request: RequestInfo | URL,
            options?: CacheQueryOptions,
        ): Promise<boolean>;
        keys(
            request?: RequestInfo | URL,
            options?: CacheQueryOptions,
        ): Promise<readonly Request[]>;
        match(
            request: RequestInfo | URL,
            options?: CacheQueryOptions,
        ): Promise<Response>;
        matchAll(
            request?: RequestInfo | URL,
            options?: CacheQueryOptions,
        ): Promise<readonly Response[]>;
        put(request: RequestInfo | URL, response: Response): Promise<void>;
    }

    Methods