Changed SessionSample's registratio of RedisCache service from Transient to Singleton

This commit is contained in:
Kiran Challa 2015-08-03 16:41:13 -07:00
parent 9c099bc057
commit 80150ec3a6
1 changed files with 1 additions and 1 deletions

View File

@ -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<IDistributedCache, RedisCache>();
//services.AddSingleton<IDistributedCache, RedisCache>();
// Adds a default in-memory implementation of IDistributedCache
services.AddCaching();