xuxiaobo-bobo 842b34b5ca 0218
2024-02-18 15:40:48 +08:00

22 lines
541 B
Plaintext

// @flow
// Generated using flowgen2
import type {CachedResponse} from './CachedResponse';
declare class MemoryCache {
getResponse(
url: string,
callback: (err: null | Error, response: null | CachedResponse) => void,
): void;
updateResponseHeaders(
url: string,
response: {[key: 'headers' | 'requestTimestamp']: any},
): void;
setResponse(url: string, response: CachedResponse): void;
invalidateResponse(
url: string,
callback: (err: ErrnoError | null) => void,
): void;
}
export default MemoryCache;