forked from olcxjas-softworks/LarpixClient
9 lines
399 B
TypeScript
9 lines
399 B
TypeScript
export declare class Cache {
|
|
private cacheRoot;
|
|
constructor(cacheRoot?: string);
|
|
static getCacheDirectory(downloadUrl: string): string;
|
|
getCachePath(downloadUrl: string, fileName: string): string;
|
|
getPathForFileInCache(url: string, fileName: string): string | null;
|
|
private hashFile;
|
|
putFileInCache(url: string, currentPath: string, fileName: string): Promise<string>;
|
|
}
|