Implements the clustered cache for an application

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 class Cache : IEnumerable, IDisposable
Visual Basic
Public Class Cache
	Implements IEnumerable, IDisposable
Visual C++
public ref class Cache : IEnumerable, IDisposable

Remarks

One instance of this class is created per application domain, and it remains valid as long as the application domain remains active. This object is accessible through the Cache property of the NCache object.

Examples

To create an instance of Cache class you can use code as follows:
 Copy imageCopy
Cache cache = NCache.InitializeCache("myReplicatedCache");
Application[“CacheHandle”] = cache;

Inheritance Hierarchy

System..::..Object
  Alachisoft.NCache.Web.Caching..::..Cache
    Alachisoft.NCache.Web.Caching..::..ClientCache

See Also