UNPKG

monorepo-cache-manager

Version:

Lightweight cache manager for monorepos with cross-workspace cache sharing and optimization

20 lines 825 B
import { CacheConfig, CacheEntry, CacheOptions, CacheStats, WorkspaceInfo } from './types'; export declare class MonorepoCacheManager { private config; private cacheIndex; private stats; constructor(config?: Partial<CacheConfig>); initialize(): Promise<void>; get(workspace: string, options?: CacheOptions): Promise<CacheEntry | null>; set(workspace: string, buildOutput: string[], options?: CacheOptions): Promise<void>; remove(cacheKey: string): Promise<void>; clear(): Promise<void>; getStats(): CacheStats; findWorkspaces(): Promise<WorkspaceInfo[]>; restore(workspace: string, options?: CacheOptions): Promise<boolean>; private loadCacheIndex; private saveCacheIndex; private enforceSizeLimit; private cleanup; } //# sourceMappingURL=cache-manager.d.ts.map