mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 23:44:23 +08:00
9 lines
453 B
TypeScript
9 lines
453 B
TypeScript
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 };
|