not using IDistributedCache
freerider7777 opened this issue · 1 comments
freerider7777 commented
Why do you use services.AddDistributedMemoryCache() if not using IDistributedCache?
Eilon commented
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