Method StartCache
StartCache(String, String)
Starts an out-proc cache. The end result is the same as that of starting the
cache using NCache Manager. It starts the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StartCache(string cacheId, string serverName)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to start. |
System.String | serverName | The name of the server on which cache needs to be started. |
StartCache(String, String, SecurityParams, SecurityParams)
Starts an out-proc cache. The end result is the same as that of starting the
cache using NCache Manager. It starts the cache on the specified cache server.
If the Cache Server could not be contacted then it throws a
Declaration
public static void StartCache(string cacheId, string serverName, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The identifier for the Cache item to start. |
System.String | serverName | The name of the server on which cache needs to be started. |
Alachisoft.NCache.Web.Security.SecurityParams | primaryUserCredentials | Primary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. |
Alachisoft.NCache.Web.Security.SecurityParams | secondaryUserCredentials | Secondary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentals are use incase primary credentials are not athorized. |