0Pricing
C# Academy · Lesson

Connecting to Redis

Configure a Redis distributed cache.

What Is Redis?

Redis is a fast in-memory key-value data store, widely used as a distributed cache. It runs as a separate server that multiple app instances connect to over the network.

Installing The Package

ASP.NET Core integrates with Redis through the Microsoft.Extensions.Caching.StackExchangeRedis package, which adapts the StackExchange.Redis client to IDistributedCache.

dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis

All lessons in this course

  1. IDistributedCache Abstraction
  2. Connecting to Redis
  3. Cache Patterns and Expiration
  4. Caching Serialized Objects
← Back to C# Academy