@dharshansr/gitgenius
Version:
AI-powered commit message generator with enhanced features
29 lines • 976 B
TypeScript
export declare class CacheManager {
private static instance;
private configManager;
private cache;
constructor();
static getInstance(): CacheManager;
set<T>(key: string, data: T, ttlMinutes?: number): void;
get<T>(key: string): T | null;
has(key: string): boolean;
delete(key: string): boolean;
clear(): void;
cacheCommitMessage(diffHash: string, message: string, provider: string): void;
getCachedCommitMessage(diffHash: string, provider: string): string | null;
cacheReview(codeHash: string, review: string, provider: string): void;
getCachedReview(codeHash: string, provider: string): string | null;
private loadCache;
private saveCache;
static createHash(content: string): string;
getStats(): {
size: number;
hitRate: number;
entries: {
key: string;
age: number;
ttl: number;
}[];
};
}
//# sourceMappingURL=CacheManager.d.ts.map