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'.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public CacheSyncDependency(
	string remoteCacheId,
	string key
)
Visual Basic
Public Sub New ( 
	remoteCacheId As String,
	key As String
)
Visual C++
public:
CacheSyncDependency(
	String^ remoteCacheId, 
	String^ key
)

Parameters

remoteCacheId
Type: System..::..String
The unique id of the remote cache
key
Type: System..::..String
The key of the item in the remote cache with which the local cache item will be kept synchronized.

See Also