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.
public void ConfigureServices(IServiceCollection services)
{
// Retrieve the configuration fro your json/xml file
services.AddStackExchangeRedisExtensions<NewtonsoftSerializer>(conf);
}I
Remember to install also you favorite serializer.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UserRedisInformation();
}