简体   繁体   中英

Use of MemoryCache in .net core mvc 2.1 and application will be deployed on azure WebApp

https://docs.microsoft.com/en-us/aspnet/core/performance/caching/memory?view=aspnetcore-2.1

I am creating a .net core MVC 2.1 application. I am thinking of caching master data , using details mentioned in above link. My application would be deployed on Win WebApp on azure. WebApp scales itself based on load. No idea how caching will behave in this case. Any any moment if multiple webservers are running, each would maintain its own cache? If this fails, is Managed Redis is the only choice on azure?

ASP.NET Core has built-in support for distributed caching and one of the default implementations of a distributed cache in ASP.NET Core also uses Redis and SQL server. You could read more here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM