System.Web.Caching.Cache Class

Implements the cache for a Web application. This class cannot be inherited.

See Also: Cache Members

Syntax

public sealed class Cache : IEnumerable

Remarks

One instance of this class is created per application domain, and it remains valid as long as the application domain remains active. Information about an instance of this class is available through the Cache property of the System.Web.HttpContext object or the Cache property of the System.Web.UI.Page object.

Note:

The System.Web.Caching.Cache class is not intended for use outside of ASP.NET applications. It was designed and tested for use in ASP.NET to provide caching for Web applications. For other types of applications, such as console applications or Windows Forms applications, use the System.Runtime.Caching.ObjectCache class.

Requirements

Namespace: System.Web.Caching
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0