appfabric缓存服务器是否还活着? [英] Is appfabric cache server is alive?

查看:113
本文介绍了appfabric缓存服务器是否还活着?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查AppFabric Cache服务器是否处于活动状态,是否使用C#编码,如何实现这一目标?因为如果它不活着那么让我从数据库中获取数据,否则从Cache Server中读取它。

i want to check whether AppFabric Cache server is alive or not using C# coding, how to achieve this? because if its not alive then let me take data from database else read it from Cache Server.

专家请帮帮我

先谢谢,Jeyaseelan

Thanks In Advance, Jeyaseelan

推荐答案

没有直接的API可以做到这一点。您可以执行新的DataCacheFactory(),如果不成功,请将缓存声明为已死。根据您的频道超时值,可能需要一段时间,因此您应该阅读来自$的数据b $ b数据库,直到做出这个决定。  

There is no direct API to do it. You could do new DataCacheFactory(), and then if it doesn't succeed, declare the cache as dead.. Depending on your channel timeout values, it could take some time, so you should read data from the database till this decision is made.  

在admin shell中,您可以使用Get-cachehost。

From the admin shell, you can use Get-cachehost.


这篇关于appfabric缓存服务器是否还活着?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆