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 };
|
|