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();