UNPKG

@gabliam/cache

Version:
14 lines (13 loc) 616 B
import { ConstructableCache } from './cache'; import { CacheManager, ICacheGroup } from './cache-manager'; export declare class SimpleCacheManager implements CacheManager { private group; private dynamic; private defaultCache; private defaultOptionsCache?; private startedCache; constructor(group: Map<string, ICacheGroup>, dynamic: boolean, defaultCache?: ConstructableCache, defaultOptionsCache?: Record<string, unknown> | undefined); getCache(name: string, groupName?: string): Promise<import("./cache").Cache | undefined>; getCacheNames(): string[]; private constructCache; }