From 80150ec3a6d5d9fbb96277514ecf91edae393e0d Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Mon, 3 Aug 2015 16:41:13 -0700 Subject: [PATCH] Changed SessionSample's registratio of RedisCache service from Transient to Singleton --- samples/SessionSample/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/SessionSample/Startup.cs b/samples/SessionSample/Startup.cs index 785005de35..79d0d54eda 100644 --- a/samples/SessionSample/Startup.cs +++ b/samples/SessionSample/Startup.cs @@ -31,7 +31,7 @@ namespace SessionSample // Uncomment the following line to use the Redis implementation of IDistributedCache. // This will override any previously registered IDistributedCache service. - //services.AddTransient(); + //services.AddSingleton(); // Adds a default in-memory implementation of IDistributedCache services.AddCaching();