aspnet / MusicStore

[Archived] MusicStore test application that uses ASP.NET/EF Core. Project moved to https://github.com/aspnet/AspNetCore
1.3k stars 878 forks source link

not using IDistributedCache #729

Closed freerider7777 closed 7 years ago

freerider7777 commented 7 years ago

Why do you use services.AddDistributedMemoryCache() if not using IDistributedCache?

Eilon commented 7 years ago

Hi @freerider7777 , the session state feature requires an implementation of IDistributedCache. Session state is used to track the user's shopping cart id: https://github.com/aspnet/MusicStore/blob/dev/samples/MusicStore/Models/ShoppingCart.cs#L171