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'.
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. |
Alachisoft.NCache.Client.ServerInfo | serverInfo | Alachisoft.NCache.Client.ServerInfo containing information of server where 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. |
Alachisoft.NCache.Client.ServerInfo | serverInfo | Alachisoft.NCache.Client.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. |