ASP.NET Core
If you are running into ASP.NET Core application, there is a specific package that you can use in order to make StackExchange.Redis.Extensions configuration easier.
Install-Package StackExchange.Redis.Extensions.AspNetCoredotnet add package StackExchange.Redis.Extensions.AspNetCore<PackageReference Include="StackExchange.Redis.Extensions.AspNetCore" Version="6.1.0" />paket add StackExchange.Redis.Extensions.AspNetCoreStartup.cs
Into your startup class,
public void ConfigureServices(IServiceCollection services)
{
// Retrieve the configuration fro your json/xml file
services.AddStackExchangeRedisExtensions<NewtonsoftSerializer>(conf);
}Ipublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UserRedisInformation();
}Last updated
Was this helpful?