1 | import { QueryResultCacheOptions } from "./QueryResultCacheOptions";
|
2 | import { QueryRunner } from "../query-runner/QueryRunner";
|
3 |
|
4 |
|
5 |
|
6 | export interface QueryResultCache {
|
7 | |
8 |
|
9 |
|
10 | connect(): Promise<void>;
|
11 | |
12 |
|
13 |
|
14 | disconnect(): Promise<void>;
|
15 | |
16 |
|
17 |
|
18 | synchronize(queryRunner?: QueryRunner): Promise<void>;
|
19 | |
20 |
|
21 |
|
22 | getFromCache(options: QueryResultCacheOptions, queryRunner?: QueryRunner): Promise<QueryResultCacheOptions | undefined>;
|
23 | |
24 |
|
25 |
|
26 | storeInCache(options: QueryResultCacheOptions, savedCache: QueryResultCacheOptions | undefined, queryRunner?: QueryRunner): Promise<void>;
|
27 | |
28 |
|
29 |
|
30 | isExpired(savedCache: QueryResultCacheOptions): boolean;
|
31 | |
32 |
|
33 |
|
34 | clear(queryRunner?: QueryRunner): Promise<void>;
|
35 | |
36 |
|
37 |
|
38 | remove(identifiers: string[], queryRunner?: QueryRunner): Promise<void>;
|
39 | }
|