In this chapter, we will explore the caching patterns of ASP.NET Core, as well as the caching strategies and the tools that are provided by the framework to help developers to implement them. The cache may become useful in order to avoid additional computation on the server, and consequently retrieve the fastest response to the client of a web service. Furthermore, we will look at a concrete cache implementation of the catalog web service.
In this chapter, we will cover the following topics:
- Introduction to the HTTP caching system
- Implementing response caching in ASP.NET Core
- Implementing a distributed cache
By the end of this chapter, you will have a general understanding of caching mechanisms and the know-how needed in order to implement a distributed cache in ASP.NET Core using Redis.