Learning NestJS Part 3: Data Caching

This is the third part of the NestJS learning series.

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:

  1. Application level
  2. Controller level
  3. Route level

It supports various caching stores, including:

  1. In-memory cache (default)
  2. 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.

Published by Dhananjay Kumar

Dhananjay Kumar is founder of NomadCoder and ng-India

Leave a comment

Discover more from Dhananjay Kumar

Subscribe now to keep reading and get access to the full archive.

Continue reading