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