import { CacheLoader } from './CacheLoader'; import { CacheFlowConfiguration, LoggerInterface, RedisCacheConfiguration } from './config/CacheFlowConfiguration'; export declare class CacheFlow { private static readonly instances; private static readonly nonCacheableInstances; private static configuration; static configure(configuration: CacheFlowConfiguration): void; static isRedisConfigured(): boolean; static getRedisConfiguration(): RedisCacheConfiguration; static getLogger(): LoggerInterface; static resetAll(): Promise; static get(cacheId: string): CacheLoader; static delete(cacheId: string, ...key: any[]): Promise; static reset(cacheId: string): Promise; static getInstances(): CacheLoader[]; static addInstance(cacheId: string, cache: CacheLoader): void; /** * Checks that a Redis configuration, when given, is complete enough to connect with. * * A partial configuration would otherwise leave all caches in in-memory LRU mode without any error, making a cache * meant to be distributed silently local to each process. * * @param {RedisCacheConfiguration} redis the Redis configuration to validate, if any */ private static validateRedisConfiguration; }