import { QueryResultCacheOptions } from "./QueryResultCacheOptions"; import { QueryRunner } from "../query-runner/QueryRunner"; export interface QueryResultCache { connect(): Promise; disconnect(): Promise; synchronize(queryRunner?: QueryRunner): Promise; getFromCache(options: QueryResultCacheOptions, queryRunner?: QueryRunner): Promise; storeInCache(options: QueryResultCacheOptions, savedCache: QueryResultCacheOptions | undefined, queryRunner?: QueryRunner): Promise; isExpired(savedCache: QueryResultCacheOptions): boolean; clear(queryRunner?: QueryRunner): Promise; remove(identifiers: string[], queryRunner?: QueryRunner): Promise; }