import { Cache, CacheCollection } from './cache'; export abstract class AsyncCache { protected cache: CacheCollection = {}; abstract get(name: string): Promise; // tslint:disable-next-line no-any abstract register(record: any): void; static nameKey(name: string): string { return Cache.nameKey(name); } clear(): void { this.cache = {}; } }