Get the source code for this video for FREE → [ Ссылка ]
☄️ Master the Modular Monolith Architecture: [ Ссылка ]
📌 Accelerate your Clean Architecture skills: [ Ссылка ]
🚀 Support me on Patreon to access the source code: [ Ссылка ]
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:
[ Ссылка ]
Read my Blog here:
[ Ссылка ]
Subscribe for more:
[ Ссылка ]
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
Ещё видео!