Click in order · NestJS course · Module 8: Caching and Performance
Cache Invalidation
Arrange the cache invalidation process after a data update:
Items to click
- Identify the cache key to delete
- Data updated in the database
- Next request will fetch fresh data
- cacheManager.del(cacheKey)
You can check the correct answer by solving this task in the CodeWorlds game.