nest-redis-cache
Version:
使用redis实现nestjs接口层面的缓存
9 lines (8 loc) • 434 B
TypeScript
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { RedisCacheService } from '~/services/redis-cache/redis-cache.service';
export declare class NestApiCacheInterceptor implements NestInterceptor {
private readonly redisCacheService;
constructor(redisCacheService: RedisCacheService);
intercept(context: ExecutionContext, next: CallHandler): Promise<any>;
private redisCacheKey;
}