monorepo-cache-manager
Version:
Lightweight cache manager for monorepos with cross-workspace cache sharing and optimization
12 lines • 629 B
TypeScript
export declare class CacheUtils {
static generateHash(filePath: string): Promise<string>;
static getAllFiles(dirPath: string): Promise<string[]>;
static getDirectorySize(dirPath: string): Promise<number>;
static findWorkspaces(rootDir: string, patterns: string[]): Promise<string[]>;
static createCacheKey(workspace: string, dependencies?: string[]): string;
static ensureDir(dirPath: string): Promise<void>;
static cleanOldFiles(dirPath: string, ttl: number): Promise<void>;
static compress(data: string): string;
static decompress(data: string): string;
}
//# sourceMappingURL=utils.d.ts.map