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.AspNetCore
Startup.cs
Into your startup class,
public void ConfigureServices(IServiceCollection services)
{
// Retrieve the configuration fro your json/xml file
services.AddStackExchangeRedisExtensions<NewtonsoftSerializer>(conf);
}I
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UserRedisInformation();
}
Last updated
Was this helpful?