Cache.d.ts 386 B

12345678
  1. export declare class Cache {
  2. private cacheRoot;
  3. constructor(cacheRoot?: string);
  4. static getCacheDirectory(downloadUrl: string): string;
  5. getCachePath(downloadUrl: string, fileName: string): string;
  6. getPathForFileInCache(url: string, fileName: string): Promise<string | null>;
  7. putFileInCache(url: string, currentPath: string, fileName: string): Promise<string>;
  8. }