Class NCache
Provides static methods and properties to aid with clustered cache initialization and access. This class cannot be inherited.
Inheritance
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public sealed class NCache
Remarks
In a Web application more than one instances of a clustered cache can be created per application domain, and they remain valid as long as the application domain remains active. A clustered cache makes sharing and caching data in a cluster as simple as on a single server. In addition to a clustered cache that resides on multiple nodes, NCache also makes it possible for different applications or application domains in a single application to share and cache data seamlessly.
From a development perspective NCache provides a simple interface for integration with application. A call to InitializeCache(String) requires just a registration id. The registration id is specified at the time of designing the cluster or cache. See the documentation for NCache for more information on designing and implementing clusters. A scheme like this shields the development process from the complexities of cluster designs. Moreover it is possible to run the same application on different underlying cache types without actually changing a single line in the source code.
Name | Description |
---|---|
Caches | Returns the collection of clustered caches for this application. |
ExceptionsEnabled | Flag that indicates whether exceptions are enabled or not. |
Name | Description |
---|---|
InitializeCache(String) | Initializes the instance of Cache for this application. |
InitializeCache(String, CacheInitParams) | Initializes the instance of Cache for this application. |
InitializeCache(String, CacheInitParams, String, CacheInitParams) | Initializes the instance of Cache for this application. |
InitializeCache(String, String) | Initializes the instance of Cache for this application. Initializes client cache that keeps synchronized with remote cache. |