Appfabric应用程序池的缓存和回收
appfabric缓存存储在内存中的什么位置?
我们有一个使用 appfabric 缓存的网站。
Appfabric缓存设置高可用,windows 2008企业版和二级缓存。
如果我们通过编辑所有服务器上的web.config来回收网站使用的应用程序池,缓存会丢失吗?
Where is the appfabric cache stored in memory?
We have a web site that uses appfabric cache.
Appfabric cache is set up with high availability, enterprise edition of windows 2008 and secondary cache.
If we recycle the application pool that the web site uses by editing the web.config on all servers will be loose the cache?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不会。如果回收应用程序池,appfabric 缓存不会发生任何变化。
请记住,您需要在应用程序中处理这一事实。
No. If you recycle the application pool, nothing happens to the appfabric cache.
Remember that you need to deal with this fact in your application.
AppFabric 缓存是一个分布式缓存 - 可选的本地缓存组件处于进程中,并且会在应用程序池回收时丢失,但核心 AppFabric 缓存服务本身是一个远程托管的缓存。如果您使用 Powershell 重新启动缓存集群,或者通过 Windows 服务管理器停止/启动服务,集群上的缓存将丢失所有状态,就像回收应用程序池一样。
AppFabric Cache is a distributed cache -- the optional local cache component is in-process and would be lost on application pool recycle, but the core AppFabric Cache service itself is a remotely-hosted cache. If you use Powershell to restart the cache cluster, or if you stop/start the service through Windows Service Manager, the caches on the cluster will lose all state, like recycling an app pool.