NestJS - Interceptors
Why might the following NestJS controller not cache responses despite using
@UseInterceptors(CacheInterceptor)?
@Controller('sample')
@UseInterceptors(CacheInterceptor)
export class SampleController {
@Get()
async fetchData() {
return await Promise.resolve('info');
}
}