• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
Show / Hide Table of Contents

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 cannot 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) is 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, Credentials)

Initializes a new instance of the CacheSyncDependency with the specified parameters. Internally, it tries to initialize the remote cache. If the cache cannot 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, 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.

Credentials credentials

Credentials containing the User ID and password of the server where the remote cache is running.

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 cannot 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 about the server where the remote cache is running.

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 cannot 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 about the server where remote cache is running.

Credentials credentials

Credentials containing the User ID and password of the server where the remote cache is running.

In This Article
  • CacheSyncDependency(String, String)
  • CacheSyncDependency(String, String, Credentials)
  • CacheSyncDependency(String, String, ServerInfo)
  • CacheSyncDependency(String, String, ServerInfo, Credentials)

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top