import { QueryResultCache } from 'typeorm/cache/QueryResultCache'; import { QueryResultCacheOptions } from 'typeorm/cache/QueryResultCacheOptions'; export interface LruQueryResultCacheConfig { max?: number; maxTtlMs?: number; } export declare class LruQueryResultCache implements QueryResultCache { private readonly cache; private readonly maxSize; constructor(config?: LruQueryResultCacheConfig); /** * Emit `nova.cache.lru.size` and `nova.cache.lru.max` as observable gauges so * dashboards can tell "is the LRU full?" directly instead of inferring from * hit-rate decay. Filter by `ServiceName` to disambiguate when multiple * DataSources share a process. */ private registerSizeGauges; connect(): Promise; disconnect(): Promise; synchronize(): Promise; getFromCache(options: QueryResultCacheOptions): Promise; storeInCache(options: QueryResultCacheOptions): Promise; isExpired(saved: QueryResultCacheOptions): boolean; remove(identifiers: string[]): Promise; clear(): Promise; private keyFor; }