UNPKG

@vendure/ngx-translate-extract

Version:
16 lines (15 loc) 519 B
import type { CacheInterface } from './cache-interface.js'; export declare class FileCache<RESULT extends object = object> implements CacheInterface<RESULT> { private cacheFile; private tapped; private cached?; private originalCache?; private versionHash?; constructor(cacheFile: string); get<KEY extends string>(uniqueContents: KEY, generator: () => RESULT): RESULT; persist(): void; private sortByKey; private readCache; private getVersionHash; private getCacheFile; }