How to add an in-memory and a Redis-powered cache layer with ASP.NET Core

from blog Just Some Code, | ↗ original
Let’s say we have a SlowService that calls a microservice and we need to speed it up. Let’s see how to add a caching layer to a service using ASP.NET Core 6.0. A cache is a storage layer used to speed up future requests. Reading from a cache is faster than computing data or retrieving it from an external source on every request. ASP.NET Core has...