System.Web.Caching Namespace

The System.Web.Caching namespace provides classes for caching frequently used data on the server.

Remarks

This namespace includes the System.Web.Caching.Cache class, a dictionary that enables you to store data objects such as hash tables and data sets. It also provides expiration functionality for those objects, and methods that enable you to add and remove the objects. You can add the objects to the cache with a dependency on other files or cache entries. In that case, the System.Web.Caching.Cache object can invoke a callback method to notify your application when an object is removed from the cache.

Classes

TypeReason
AggregateCacheDependency

Combines multiple dependencies between an item stored in an ASP.NET application's System.Web.Caching.Cache object and an array of System.Web.Caching.CacheDependency objects. This class cannot be inherited.

Cache

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

CacheDependency

Establishes a dependency relationship between an item stored in an ASP.NET application's System.Web.Caching.Cache object and a file, cache key, an array of either, or another System.Web.Caching.CacheDependency object. The System.Web.Caching.CacheDependency class monitors the dependency relationships so that when any of them changes, the cached item will be automatically removed.

CacheItemPriority

Specifies the relative priority of items stored in the System.Web.Caching.Cache object.

CacheItemRemovedCallback

Defines a callback method for notifying applications when a cached item is removed from the System.Web.Caching.Cache.

CacheItemRemovedReason

Specifies the reason an item was removed from the System.Web.Caching.Cache.

SqlCacheDependency

Establishes a relationship between an item stored in an ASP.NET application's System.Web.Caching.Cache object and either a specific SQL Server database table or the results of a sqprsqlong query. This class cannot be inherited.