Cache Class

Cache Class

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

For a list of all members of this type, see Cache Members.


[Visual Basic]
NotInheritable Public Class Cache
   Implements IEnumerable
public sealed class Cache : IEnumerable
public __gc __sealed class Cache : public IEnumerable
public class Cache implements IEnumerable

Thread Safety

This type is safe for multithreaded operations.


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 HttpContext object or the Cache property of the Page object.


Namespace: System.Web.Caching

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

Cache Members | System.Web.Caching Namespace | HttpContext | CacheDependency | CacheItemRemovedCallback | Caching Application Data

© 2015 Microsoft