Summary
Caches help us to create high performance applications by reducing the calls to resources that are less performant, such as databases, external APIs, or complex calculations. In this chapter, you learned to use the response cache using the ResponseCachingMiddleware
and the ResponseCacheAttribute
, and the in-memory cache by using the CacheTagHelper
as well as by using the IMemoryCache
manually in the C# code.
In the next chapter, you will learn how to create custom TagHelper
.