System.Web.Caching.Cache: Method Members

The methods of System.Web.Caching.Cache are listed below. For a list of all members, see the Cache Members list.

See Also: Inherited members from System.Object

Public Methods

Add(string, object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback) : object

Adds the specified item to the System.Web.Caching.Cache object with dependencies, expiration and priority policies, and a delegate you can use to notify your application when the inserted item is removed from the Cache.

Get(string) : object

Retrieves the specified item from the System.Web.Caching.Cache object.

GetEnumerator() : IDictionaryEnumerator

Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache.

Insert(string, object)

Inserts an item into the System.Web.Caching.Cache object with a cache key to reference its location, using default values provided by the System.Web.Caching.CacheItemPriority enumeration.

Insert(string, object, CacheDependency)

Inserts an object into the System.Web.Caching.Cache that has file or key dependencies.

Insert(string, object, CacheDependency, DateTime, TimeSpan)

Inserts an object into the System.Web.Caching.Cache with dependencies and expiration policies.

Insert(string, object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback)

Inserts an object into the System.Web.Caching.Cache object with dependencies, expiration and priority policies, and a delegate you can use to notify your application when the inserted item is removed from the Cache.

Remove(string) : object

Removes the specified item from the application's System.Web.Caching.Cache object.