System.Web.Caching.Cache Members

The members of System.Web.Caching.Cache are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.Caching.Cache class.

Public Fields

static readonly
NoAbsoluteExpirationDateTime (12/31/9999 11:59:59 PM).

Used in the absoluteExpiration parameter in an Cache.Insert(string, object) method call to indicate the item should never expire. This field is read-only.

static readonly
NoSlidingExpirationTimeSpan.

Used as the slidingExpiration parameter in an Cache.Insert(string, object) or Cache.Add(string, object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback) method call to disable sliding expirations. This field is read-only.

Public Properties

[read-only]
Countint.

Gets the number of items stored in the cache.

default property
Item(string)object. Documentation for this section has not yet been entered.

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.

Explicitly Implemented Interface Members

IEnumerable.GetEnumerator

Returns an enumerator that can iterate through the System.Web.Caching.Cache object collection.