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, String, Int32)
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 server, int port)
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 | server | The name of the server where the remote cache is running |
System.Int32 | port | The port used by the client to connect to the server |
CacheSyncDependency(String, String, String, Int32, 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 server, int port, 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 | server | The name of the server where the remote cache is running |
System.Int32 | port | |
System.String | userID | |
System.Byte[] | password | The Security password of the remote cache |
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. 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, 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 |