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. |
cacheName | The identifier for the ICache. |
Cache |
connection | Cache |
Returns
Type | Description |
---|---|
Cache |
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);