UNPKG

@vulcan-sql/core

Version:
23 lines (22 loc) 910 B
import { interfaces } from 'inversify'; import { CacheLayerInfo } from '../../models/index'; import { CacheLayerOptions } from '../../options/index'; import { DataSource } from '../../models/index'; export interface ICacheLayerLoader { load(templateName: string, cache: CacheLayerInfo): Promise<void>; } export declare class CacheLayerLoader implements ICacheLayerLoader { private dataSourceFactory; private options; private cacheStorage; private logger; constructor(options: CacheLayerOptions, dataSourceFactory: interfaces.SimpleFactory<DataSource>); /** * Load the data to the cache storage according to cache settings * @param templateName template source name * @param cache the cache layer info settings from API schema */ load(templateName: string, cache: CacheLayerInfo): Promise<void>; private getParquetFiles; private removeParquetFiles; }