Summary
In this chapter, we learned about various caching techniques, patterns, and their benefits in improving application performance. Furthermore, we learned about HTTP caching, how response caching can be integrated into an API response, and further various available caching providers and their integration with .NET 5 applications. We also learned how to implement distributed caching using IDistributedCache
and built a cache abstraction layer that will be used in subsequent chapters for caching requirements. Some of the key skills that we learned about along the way are why and when caching is needed and how to implement caching in .NET 5 applications.
In the next chapter, we will look at various data stores and providers in .NET 5 and their integration with .NET 5 applications.