API

AddStackExchangeRedisCache

Registers the Redis-backed distributed cache provider.

Formal Syntax & Structure

csharp syntaxcsharp
services.AddStackExchangeRedisCache(o => o.Configuration = approvedEndpoint);

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.services.AddStackExchangeRedisCache(o => o.Configuration = approvedEndpoint);
C# & .NET Reference