Search posts, tags, users, and pages
Shahid Kamal
Software Engineer
I love working with Nest.js, it's such an excellent framework for teams to build a scalable backend server. Recently, I've been working on caching all our routes. It worked well for a few days then I noticed I missed an endpoint that can not be cac...
Sergio
Great article Shahid!
Do I also need to include new interceptor/decorator somewhere else? Like app.module?
This example didn't work for me right away...
thanks,
If you want the cache interceptor to work on the global level then add below in the app.module.ts
app.module.ts
providers: [ { provide: APP_INTERCEPTOR, useClass: MyCacheInterceptor, }, ]
Yunus Emre INCE
That is exactly what I was looking for. Thank you Shahid for clear explanation and code samples
Sergio
Great article Shahid!
Do I also need to include new interceptor/decorator somewhere else? Like app.module?
This example didn't work for me right away...
thanks,