Method GetCacheHealth
GetCacheHealth(String, CacheConnection)
Gets 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 |
---|---|
CacheHealth | CacheHealth containing information about cache including 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);