Distributed Caching In ASP.NET Core With Redis | Introduction



Distributed Caching In ASP.NET Core With Redis | Introduction

Distributed Caching In ASP.NET Core With Redis | Introduction

Support me on Patreon to access the source code:
https://www.patreon.com/milanjovanovic

In this video, I’m going to show you how you can add caching to your ASP.NET Core Web API using Redis. We’re going to run Redis inside of a Docker container and connect to this Redis instance from our ASP.NET Core application. We’ll use the IDistributedCache interface to communicate with Redis, which makes our ASP.NET Core implementation easier.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
https://www.youtube.com/c/MilanJovanovicTech?sub_confirmation=1

Chapters
0:00 Replace IMemoryCache with IDistributedCache
3:41 Implementing caching with IDistributedCache
9:13 Testing the implementation
12:23 Adding a custom ContractResolver for private members
14:38 Testing the improved implementation
15:38 What is the performance with Redis?
16:33 Make caching work with EF change tracking

Comments are closed.