Constructor CacheSyncDependency
CacheSyncDependency(String, String)
Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally it tries to initialize the remote cache. If the cache can not be initialized, it throws the exception describing the cause of failure.
The remote cache must be running as OutProc, even if it is on the same machine. The information to connect to the remote cache instance (like server-name and server-port) are picked from the client.ncconf file.
Declaration
public CacheSyncDependency(string remoteCacheId, string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | remoteCacheId | The unique ID of the remote cache. |
System.String | key | The key of the item in the remote cache with which the local cache item will be kept synchronized. |
CacheSyncDependency(String, String, ServerInfo)
Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally, it tries to initialize the remote cache. If the cache can not be initialized, it throws the exception describing the cause of failure. The remote cache must be running as OutProc, even if it is on the same machine.
Declaration
public CacheSyncDependency(string remoteCacheId, string key, ServerInfo serverInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | remoteCacheId | The unique ID of the remote cache. |
System.String | key | The key of the item in the remote cache with which the local cache item will be kept synchronized. |
ServerInfo | serverInfo | ServerInfo containing information of the server where the remote cache is running. |
CacheSyncDependency(String, String, String, Byte[])
Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally it tries to initialize the remote cache. If the cache can not be initialized, it throws the exception describing the cause of failure. The remote cache must be running as OutProc, even if it is on the same machine.
Declaration
public CacheSyncDependency(string remoteCacheId, string key, string userId, byte[] password)
Parameters
Type | Name | Description |
---|---|---|
System.String | remoteCacheId | The unique ID of the remote cache. |
System.String | key | The key of the item in the remote cache with which the local cache item will be kept synchronized. |
System.String | userId | The User ID of the remote cache. |
System.Byte[] | password | The Security password of the remote cache. |
CacheSyncDependency(String, String, ServerInfo, Credentials)
Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally it tries to initialize the remote cache. If the cache can not be initialized, it throws the exception describing the cause of failure. The remote cache must be running as OutProc, even if it is on the same machine.
Declaration
public CacheSyncDependency(string remoteCacheId, string key, ServerInfo serverInfo, Credentials credentials)
Parameters
Type | Name | Description |
---|---|---|
System.String | remoteCacheId | The unique ID of the remote cache. |
System.String | key | The key of the item in the remote cache with which the local cache item will be kept synchronized. |
ServerInfo | serverInfo | ServerInfo containing information of server where remote cache is running. |
Credentials | credentials | Credentials containing the User ID and password of ther server where remote cache is running. |