UNPKG

741 BTypeScriptView Raw
1import { Observable } from 'rxjs';
2import { CallHandler, ExecutionContext, HttpServer, NestInterceptor } from '../../interfaces';
3export interface HttpAdapterHost<T extends HttpServer = any> {
4 httpAdapter: T;
5}
6export declare class CacheInterceptor implements NestInterceptor {
7 protected readonly cacheManager: any;
8 protected readonly reflector: any;
9 protected readonly httpAdapterHost: HttpAdapterHost;
10 protected allowedMethods: string[];
11 constructor(cacheManager: any, reflector: any);
12 intercept(context: ExecutionContext, next: CallHandler): Promise<Observable<any>>;
13 protected trackBy(context: ExecutionContext): string | undefined;
14 protected isRequestCacheable(context: ExecutionContext): boolean;
15}