Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created April 5, 2018 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/a854a903f77003201b2ee667c4768fc7 to your computer and use it in GitHub Desktop.
Save dcomartin/a854a903f77003201b2ee667c4768fc7 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
var redis = ConnectionMultiplexer.Connect("your connection here");
services.AddDataProtection().PersistKeysToRedis(redis, "DataProtectionKeys");
services.AddMvc();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment