UNPKG

@ui5/task-adaptation

Version:

Custom task for ui5-builder which allows building UI5 Flexibility Adaptation Projects for SAP BTP, Cloud Foundry environment

17 lines (16 loc) 798 B
import { IConfiguration, IMetadata } from "../model/types.js"; export default abstract class CacheManager { protected configuration: IConfiguration; constructor(configuration: IConfiguration); protected abstract getMetadataFilename(): string; protected abstract getTempId(): string; protected getTempFolder(): string; getFiles(fetchMetadata: () => Promise<IMetadata>, fetchFiles: () => Promise<Map<string, string>>): Promise<Map<string, string>>; isMetadataSame(tempMetadata: IMetadata, metadata: IMetadata): boolean; readTempMetadata(): any; writeTemp(files: Map<string, string>, metadata: any): Promise<void[]>; readTemp(): Promise<Map<string, string>>; deleteTemp(): void; protected normalizeId(id: string): string; private getFilesToCache; }