UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

72 lines 1.55 kB
/** * Cache manager for research API responses * * @module research/cache/manager */ /** * Cache configuration */ export interface CacheConfig { /** Cache directory path */ cacheDir: string; /** Default TTL in seconds */ defaultTtl: number; /** TTL per endpoint type */ ttlByEndpoint?: Record<string, number>; } /** * Cache manager for file-based caching */ export declare class CacheManager { private config; constructor(config?: Partial<CacheConfig>); /** * Get cached data */ get<T>(key: string): Promise<T | null>; /** * Set cached data */ set<T>(key: string, data: T, endpoint?: string): Promise<void>; /** * Delete cached data */ delete(key: string): Promise<void>; /** * Clear all cache */ clear(): Promise<void>; /** * Clear expired entries */ clearExpired(): Promise<number>; /** * Get cache statistics */ getStats(): Promise<{ totalEntries: number; expiredEntries: number; sizeBytes: number; }>; /** * Generate cache key from input */ generateKey(endpoint: string, params: Record<string, unknown>): string; /** * Check if cache entry is expired */ private isExpired; /** * Get file path for cache key */ private getFilePath; /** * Ensure directory exists */ private ensureDir; /** * List all cache files */ private listCacheFiles; } //# sourceMappingURL=manager.d.ts.map