import { OnModuleDestroy, OnModuleInit, Type } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Cache } from 'cache-manager'; import { Action } from '../enums'; import { CacheModuleOptions } from './cache.module'; export declare class CacheService implements OnModuleInit, OnModuleDestroy { private cacheManager; private cacheModuleOptions; private configService; private readonly logger; private readonly storeType; private readonly cachePrefix; private readonly ttl; private readonly maxItems; private readonly evictionStrategy; private readonly evictionDeferred; private readonly changeStrategy; private readonly changeDeferred; private readonly filesystemRootDir; private readonly metadataPath; private readonly cleanStart; private readonly enabled; private keysMeta; constructor(cacheManager: Cache, cacheModuleOptions: CacheModuleOptions, configService: ConfigService); onModuleInit(): Promise; onModuleDestroy(): Promise; getCacheManager(): Cache; isEnabled(): boolean; prefixedKey(key: string): string; get(key: string, type?: Type): Promise; set(key: string, value: any, ttl?: number | any): Promise; del(key: string): Promise; loadKeysMeta(): Promise; storeKeysMeta(): Promise; expire(pattern?: string): Promise; evict(): Promise; expireOnChange(resource: string, action: Action): Promise; keys(pattern?: string): Promise>; private redisKeys; private filesystemKeys; private memoryKeys; private removeEmptyDirs; private evictExcessEntries; private sortLRU; private sortLFU; private sortFIFO; }