UNPKG

pm-orchestrator-enhancement

Version:

PM Orchestrator Enhancement - Multi-agent parallel execution system

75 lines 1.86 kB
/** * File Cache Module * * TTLベースのファイル内容キャッシュ機能を提供します。 */ export interface CacheEntry { content: string; hash: string; cachedAt: Date; expiresAt: Date; filePath: string; } export declare class FileCache { private cache; private defaultTTL; constructor(defaultTTL?: number); /** * ファイル内容を取得(キャッシュまたは読み込み) */ get(filePath: string, ttl?: number): string | null; /** * ファイルを読み込んでキャッシュ */ load(filePath: string, ttl?: number): string | null; /** * キャッシュを無効化 */ invalidate(filePath: string): boolean; /** * 全てのキャッシュをクリア */ clear(): void; /** * 期限切れエントリをクリーンアップ */ cleanup(): number; /** * キャッシュエントリが有効かチェック */ private isValid; /** * ファイルが変更されたかチェック */ private hasFileChanged; /** * コンテンツのハッシュを計算 */ private calculateHash; /** * キャッシュキーを生成 */ private getCacheKey; /** * キャッシュサイズを取得 */ size(): number; /** * キャッシュ統計を取得 */ getStats(): { total: number; valid: number; expired: number; totalSize: number; }; /** * 複数ファイルを一括読み込み */ loadMultiple(filePaths: string[], ttl?: number): Map<string, string>; /** * ファイルパターンに一致するファイルをキャッシュ */ preload(directory: string, pattern: RegExp, ttl?: number): number; } //# sourceMappingURL=file-cache.d.ts.map