Provides static methods and properties to aid with clustered cache initialization and
access. This class cannot be inherited.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public sealed class NCache |
Visual Basic |
---|
Public NotInheritable Class NCache |
Visual C++ |
---|
public ref class NCache sealed |
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 desgining 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.