Back to Browse

.NET 8 Microservices Redis Cache

7.5K views
Jan 23, 2025
13:05

Boost the performance of your .NET 8 microservices with Redis Cache! 🚀⚡ In this tutorial, we’ll show you how to integrate Redis for efficient caching in your microservices architecture. Here’s what you’ll learn: ✅ What is Redis, and why use it in microservices? ✅ Setting up Redis and integrating it with .NET 8 ✅ Implementing caching strategies for improved performance ✅ Managing data expiration and cache invalidation ✅ Real-world examples of caching API responses and database queries ✅ Best practices for using Redis in production environments Chapters 0:00 - [Intro Music] 0:07 - Welcome to Living the Logic 0:25 - Setting Up a New .NET 8 Web API Project 1:05 - Installing Docker Desktop 1:43 - Pulling Redis Image in Docker 2:00 - Setting Up Redis Insight 2:24 - Launching the Web API Project in Visual Studio 3:14 - Stopping Web API and Preparing for Redis Docker Setup 3:24 - Pulling Redis from Docker 4:03 - Running Redis Locally with Docker 4:36 - Checking Redis in Docker Desktop 5:00 - Connecting to Redis with Redis Insight 5:33 - Setting Up App Settings for Redis Connection 6:23 - Setting Up Dependency Injection in Program.cs 7:00 - Injecting Redis into Weather Forecast Controller 7:17 - Making the API Method Async and Storing Data in Redis 8:00 - Configuring Redis Cache Key and Storing Data 9:01 - Serializing Weather Forecast Data and Storing in Redis 10:50 - Running the API and Testing Redis Cache 11:15 - Verifying Redis Cache in Redis Insight 12:00 - Recap: Setting Up Redis with .NET 8 Microservices 12:46 - Outro: Like, Subscribe, and Comment This video is perfect for developers looking to optimize the speed and scalability of their microservices with caching techniques. Let’s make your applications faster and more efficient! 👍 Found this video useful? Like, subscribe, and turn on notifications for more .NET tutorials and performance optimization tips. 📂 Access sample code and resources here: https://www.docker.com/products/docker-desktop/ https://redis.io/docs/latest/operate/redisinsight/install/install-on-desktop/ docker redis commands: docker pull redis docker run -d --name redis -p 6379:6379 redis Please like and subscribe for more content 👍 We’d love to hear your thoughts—please leave your feedback in the comments below! 👍 Turn on notifications for the next videos in this series! 💬 Have questions or need assistance? Share them in the comments below, and we’ll help you out!

Download

1 formats

Video Formats

360pmp415.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

.NET 8 Microservices Redis Cache | NatokHD