This is the third part of the NestJS learning series.
- Read Part 1 here – Getting Started
- Read Part 2 here – Connecting to Database
In this part, we will learn about caching. This part of the series will cover the following topics:
- Enabling caching at the application level
- Enabling caching at the Route Level
- In-memory caching
- Integrating Azure Redis Cache
- Working with keys
NestJS offers a built-in CacheModule that enables easy integration of caching functionality. Caching can be applied at different levels:
- Application level
- Controller level
- Route level
It supports various caching stores, including:
- In-memory cache (default)
- External stores like Azure Redis Cache
By default, NestJS uses an in-memory cache. To get started with caching, begin by installing the cache manager package in your NestJS project.
Read the full article here.
https://www.telerik.com/blogs/learning-nestjs-part-3-data-caching
Thanks for reading it.
Discover more from Dhananjay Kumar
Subscribe to get the latest posts sent to your email.