зеркало из https://github.com/aspnet/MusicStore.git
React to changes in Caching
This commit is contained in:
Родитель
e5dcc78153
Коммит
3faa34acf3
|
@ -80,7 +80,8 @@ namespace MusicStore
|
|||
services.AddSingleton<IMemoryCache, MemoryCache>();
|
||||
|
||||
// Add session related services.
|
||||
services.AddCaching();
|
||||
services.AddMemoryCache();
|
||||
services.AddDistributedMemoryCache();
|
||||
services.AddSession();
|
||||
|
||||
// Add the system clock service
|
||||
|
|
|
@ -89,7 +89,8 @@ namespace MusicStore
|
|||
services.AddSingleton<IMemoryCache, MemoryCache>();
|
||||
|
||||
// Add session related services.
|
||||
services.AddCaching();
|
||||
services.AddMemoryCache();
|
||||
services.AddDistributedMemoryCache();
|
||||
services.AddSession();
|
||||
|
||||
// Add the system clock service
|
||||
|
|
|
@ -76,7 +76,8 @@ namespace MusicStore
|
|||
services.AddMvc();
|
||||
|
||||
// Add memory cache services
|
||||
services.AddCaching();
|
||||
services.AddMemoryCache();
|
||||
services.AddDistributedMemoryCache();
|
||||
|
||||
// Add session related services.
|
||||
services.AddSession();
|
||||
|
|
|
@ -74,7 +74,8 @@ namespace MusicStore
|
|||
services.AddMvc();
|
||||
|
||||
// Add memory cache services
|
||||
services.AddCaching();
|
||||
services.AddMemoryCache();
|
||||
services.AddDistributedMemoryCache();
|
||||
|
||||
// Add session related services.
|
||||
services.AddSession();
|
||||
|
|
|
@ -87,7 +87,8 @@ namespace MusicStore
|
|||
services.AddMvc();
|
||||
|
||||
// Add memory cache services
|
||||
services.AddCaching();
|
||||
services.AddMemoryCache();
|
||||
services.AddDistributedMemoryCache();
|
||||
|
||||
// Add session related services.
|
||||
services.AddSession();
|
||||
|
|
Загрузка…
Ссылка в новой задаче