You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
430 B

declare class Cacher<T> {
refresher: () => Promise<T>;
filename: string;
bootstrapFile?: string;
ttlMilliseconds: number;
readError?: any;
writeError?: any;
constructor(refresher: () => Promise<T>, filename: string, ttlMilliseconds?: number, bootstrapFile?: string);
getAsync(): Promise<T>;
clearAsync(): Promise<void>;
}
declare function getCacheDir(): string;
export { Cacher, getCacheDir };