简体   繁体   English

在.net core mvc 2.1和应用程序中使用MemoryCache将会部署在azure WebApp上

[英]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 https://docs.microsoft.com/zh-cn/aspnet/core/performance/caching/memory?view=aspnetcore-2.1

I am creating a .net core MVC 2.1 application. 我正在创建一个.net核心MVC 2.1应用程序。 I am thinking of caching master data , using details mentioned in above link. 我正在考虑使用上面链接中提到的详细信息缓存主数据。 My application would be deployed on Win WebApp on azure. 我的应用程序将在Azure上部署在Win WebApp上。 WebApp scales itself based on load. WebApp可根据负载进行扩展。 No idea how caching will behave in this case. 不知道在这种情况下缓存将如何表现。 Any any moment if multiple webservers are running, each would maintain its own cache? 如果有多个Web服务器正在运行,则每个时刻都会维护自己的缓存吗? If this fails, is Managed Redis is the only choice on azure? 如果失败,是Azure的唯一选择是Managed Redis吗?

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. ASP.NET Core具有对分布式缓存的内置支持,并且ASP.NET Core中分布式缓存的默认实现之一也使用Redis和SQL Server。 You could read more here 你可以在这里阅读更多

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Net Core MemoryCache 在 Azure 中无法正常工作 - Net Core MemoryCache not working properly in Azure MVC Net Core将MemoryCache传递给所有控制器 - MVC Net Core Pass MemoryCache to All Controllers ASP.NET Core 2.1 - 实现 MemoryCache 时出错 - ASP.NET Core 2.1 - Error Implementing MemoryCache Azure ASP.NET 核心 MVC WebApp 的 AD 身份验证 - 如何自定义应用程序的 Redirect_URI! 发送 - Azure AD Authentication for ASP.NET Core MVC WebApp - how to customize the Redirect_URI the APPLICATION! sends Azure 部署后 ASP.NET Core MVC webapp 错误 - ASP.NET Core MVC webapp error after Azure deployment 无法将 ASP.NET Core 2.1 Angular 应用程序部署到 Azure - Unable to Deploy ASP.NET Core 2.1 Angular Application To Azure 将Blazor支持添加到现有的ASP .NET Core 2.1 MVC应用程序中 - Add Blazor support to existing ASP .NET Core 2.1 MVC application .Net Core WebApp API 端点一旦部署到 Azure 就不起作用 - .Net Core WebApp API Endpoints don't work once deployed to Azure 在.net core 2.1中使用cookie,授权属性,为应用程序创建会话 - Use cookie, authorize attribute, create session for application in .net core 2.1 在asp.net MVC应用程序中使用memorycache每次都会创建它 - Using memorycache in asp.net mvc application it gets created everytime
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM