@ui5/task-adaptation
Version:
Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment
19 lines (18 loc) • 718 B
TypeScript
export default class CacheHolder {
private static TEMP_TASK_DIR;
private static getTempDir;
static read(repoName: string, token: string): Map<string, string> | undefined;
static write(repoName: string, token: string, files: Map<string, string>): Promise<void>;
private static isValid;
/**
* Clears cached files by repo name and token
*/
static delete(...paths: string[]): void;
/**
* Clears all cached files
*/
static clear(): void;
private static deleteDir;
static clearOutdatedExcept(repoName?: string, maxAgeMs?: number): Promise<void>;
}
export declare function cached(): (_target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void;