在Azure中清除缓存 [英] Cache clearing in Azure
问题描述
嗨
我有一个网站,我正在使用PASS模型迁移到Azure.当前,该网站不是托管在云上,而是托管在专用服务器上.
I have an website which i am migrating to Azure using PASS model. currently this website is not hosted on cloud but a dedicated server.
我在此网站上使用了内存缓存.另外,我有一个aspx页面来清除网站的缓存,当数据库发生变化时,我们从exe调用该网站.
i have used in-memory cache in this website. Also, I have a aspx page to clear the cache for the website which we call from an exe when there is change in database.
将网站移至Azure后,如果有负载,它可能会创建网站的多个实例来处理负载.现在,当数据库发生更改时,我想清除所有实例的缓存.你能建议我该怎么做吗?
After i move the site to Azure, when there is a load, it may create multiple instances of the website to server the load.now when there is a DB change, i want to clear the cache for all the instances. can you please suggest how can I do that.
或者还有另一种最佳方法来在Azure中维护缓存
Or is there another best way to maintain the Cache in Azure
Umesh
推荐答案
Umesh,
感谢您的反馈.请在下面找到对清除缓存的类似线程的引用,这可能有助于您清除缓存.
Thanks for your feedback. Please find below the reference to a similar thread for Cache clearing which might help you in clearing the cache.
https://social.msdn.microsoft.com/forums/azure/zh-CN/344dc39c-afc4-43b6-a0a0-501199c161f1/how-to-clear-azure-cache
https://social.msdn.microsoft.com/forums/azure/en-US/344dc39c-afc4-43b6-a0a0-501199c161f1/how-to-clear-azure-cache
除了用于维护缓存的内容之外,您还可以参考以下文档.
Apart from that for maintaining the Cache you can refer the below documentation.
https://docs.microsoft.com/zh-CN/azure/architecture/best-practices/caching
https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching
如果您需要更多信息,请告诉我们.
Please let us know if you need further information.
谢谢
这篇关于在Azure中清除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!