This documentation is archived and is not being maintained.
Cache Members
Visual Studio 2008
Implements the cache for a Web application. This class cannot be inherited.
The Cache type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds the specified item to the 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. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Get | Retrieves the specified item from the Cache object. |
|
GetEnumerator | Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
Insert | Overloaded. Inserts an item into the Cache object. Use one of the versions of this method to overwrite an existing Cache item with the same key parameter. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified item from the application's Cache object. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
NoAbsoluteExpiration | Used in the absoluteExpiration parameter in an Insert method call to indicate the item should never expire. This field is read-only. |
|
NoSlidingExpiration | Used as the slidingExpiration parameter in an Insert or Add method call to disable sliding expirations. This field is read-only. |
| Name | Description | |
|---|---|---|
|
Count | Gets the number of items stored in the cache. |
|
EffectivePercentagePhysicalMemoryLimit | Gets the percentage of physical memory that can be consumed by an application before ASP.NET starts removing items from the cache. |
|
EffectivePrivateBytesLimit | Gets the number of bytes available for the cache. |
|
Item | Gets or sets the cache item at the specified key. |
| Name | Description | |
|---|---|---|
|
IEnumerable::GetEnumerator | Returns an enumerator that can iterate through the Cache object collection. |
Show: