import { OnApplicationShutdown } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { Cache } from 'cache-manager'; import Redis from 'ioredis'; export declare class CacheService implements OnApplicationShutdown { private readonly redis; private cacheManager; private readonly configService; constructor(redis: Redis, cacheManager: Cache, configService: ConfigService); onApplicationShutdown(): void; useRedis(): boolean; read(key: string): Promise; write(key: string, value: any, ttl: number): Promise; del(key: string): Promise; }