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.1.0.0 (4.1.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