/** * 관계 그래프 캐시 (L1/L2 + 키 인덱스) */ import type { ICacheService } from '../../../shared/interfaces/cache.interface.js'; import type { GetRelationsOptions, MemoryRelation } from '../../../shared/types/relation-graph.js'; export declare class RelationGraphCache { private l1Cache; private l2Cache; private cacheKeyIndex; constructor(l1Cache: ICacheService, l2Cache: ICacheService); /** * 캐시 키 생성 */ generateCacheKey(memoryId: string, options?: GetRelationsOptions): string; /** * 캐시 키를 인덱스에 추가 */ addCacheKeyToIndex(memoryId: string, cacheKey: string): void; /** * L1 → L2 순으로 캐시 조회 (L2 히트 시 L1에 승격) */ get(cacheKey: string): MemoryRelation[] | undefined; /** * L1/L2 캐시에 저장하고 인덱스에 등록 */ set(cacheKey: string, memoryId: string, relations: MemoryRelation[]): void; /** * 특정 메모리 ID와 관련된 캐시 무효화 */ invalidate(memoryId: string): void; } //# sourceMappingURL=relation-graph-cache.d.ts.map