wzp
2021-05-13 7d694a9113118daec5be7ac224dab46a3b20f106
1
2
3
4
5
6
7
8
import { CachedResponse } from './CachedResponse';
interface ICache {
    getResponse(url: string, cb: (err: Error | null, response: CachedResponse | null) => void): void;
    setResponse(url: string, response: CachedResponse | null): void;
    updateResponseHeaders?: (url: string, response: Pick<CachedResponse, 'headers' | 'requestTimestamp'>) => void;
    invalidateResponse(url: string, cb: (err: Error | null) => void): void;
}
export { ICache };