@gabliam/cache
Version:
cache plugin for gabliam
30 lines (29 loc) • 929 B
TypeScript
import { ConstructableCache } from './cache';
import { ConstructableCacheManager } from './cache-manager';
export interface PluginConfig {
cacheManager: string | ConstructableCacheManager;
groups: {
[k: string]: PluginGroupConfig;
} | undefined;
dynamic: boolean;
defaultCache: string | ConstructableCache;
defaultOptionsCache?: Record<string, unknown>;
}
export interface PluginGroupConfig {
defaultCache?: ConstructableCache;
defaultOptionsCache?: Record<string, unknown>;
caches: {
[k: string]: PluginCacheConfig;
} | undefined;
}
export interface PluginCacheConfig {
cache?: string | ConstructableCache;
options?: Record<string, unknown>;
}
export declare class CachePluginConfig {
cacheConfig: PluginConfig | undefined;
createCacheManager(): any;
private getCacheManagerConstruct;
private getCacheConstruct;
private createDefaultManager;
}