UNPKG

cdk-insights

Version:

AWS CDK security and cost analysis tool with AI-powered insights

54 lines (53 loc) 1.21 kB
interface CacheStats { totalHits: number; totalMisses: number; totalSets: number; totalClears: number; lastClearTime?: number; cacheSize: number; maxCacheSize: number; } /** * Clear all cached analysis results */ export declare const clearCache: () => void; /** * Get cache statistics */ export declare const getCacheStats: () => { cacheDir: string; cacheFileExists: boolean; cacheDirExists: boolean; cacheSize?: number; stats: CacheStats; }; /** * Create cache directory if it doesn't exist */ export declare const ensureCacheDir: () => void; /** * Get the cache directory path */ export declare const getCacheDir: () => string; /** * Check if cache is enabled for the given tier */ export declare const isCacheEnabled: (tier?: "free" | "pro" | "enterprise") => boolean; /** * Record cache hit */ export declare const recordCacheHit: () => void; /** * Record cache miss */ export declare const recordCacheMiss: () => void; /** * Record cache set */ export declare const recordCacheSet: () => void; /** * Get cache hit rate */ export declare const getCacheHitRate: () => number; export declare const clearAnalysisCache: () => void; export {};