UNPKG

519 BTypeScriptView Raw
1/**
2 * Options passed to QueryResultCache class.
3 */
4export interface QueryResultCacheOptions {
5 /**
6 * Cache identifier set by user.
7 * Can be empty.
8 */
9 identifier: string;
10 /**
11 * Time, when cache was created.
12 */
13 time?: number;
14 /**
15 * Duration in milliseconds during which results will be returned from cache.
16 */
17 duration: number;
18 /**
19 * Cached query.
20 */
21 query: string;
22 /**
23 * Query result that will be cached.
24 */
25 result?: any;
26}