Method GetCacheHealth
GetCacheHealth(String, CacheConnection)
Get Health status of a cache.
Declaration
public static CacheHealth GetCacheHealth(string cacheName, CacheConnection connection = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheName | The identifier for the ICache. |
CacheConnection | connection | CacheConnection parameters for connection to Cache. |
Returns
Type | Description |
---|---|
Alachisoft.NCache.Runtime.CacheManagement.CacheHealth | Alachisoft.NCache.Runtime.CacheManagement.CacheHealth containing information cache including Alachisoft.NCache.Runtime.CacheManagement.NodeStatus for each node in cache. |
Examples
The following example shows the to Health status of a cache.
CacheConnection cacheConnection = new CacheConnection("remoteServer", 8250);
cacheConnection.UserCredentials = new Credentials("domain\\user-id", "password");
CacheHealth cacheHealth = CacheManager.GetCacheHealth("demoCache",cacheConnection);