UNPKG

gather-ts

Version:

A powerful code analysis and packaging tool designed for creating AI-friendly code representations for javascript and typescript projects.

26 lines (25 loc) 1.03 kB
import { IDependencyCache, IDependencyCacheStats, IDependencyCacheDeps, IDependencyCacheOptions, ICacheOperationOptions } from "./interfaces/IDependencyCache"; import { IDependencyMap } from "@/types"; export declare class DependencyCache implements IDependencyCache { private readonly deps; private cache; private readonly debug; private readonly timeout; private stats; isInitialized: boolean; private cacheDuration; constructor(deps: IDependencyCacheDeps, options?: IDependencyCacheOptions); private initializeStats; initialize(options?: ICacheOperationOptions): Promise<void>; cleanup(): void; private logDebug; private handleError; get(key: string, options?: ICacheOperationOptions): IDependencyMap | null; set(key: string, dependencies: IDependencyMap, options?: ICacheOperationOptions): void; delete(key: string): void; clear(): void; has(key: string): boolean; private computeHash; private updateStats; getStats(): IDependencyCacheStats; }