This documentation is archived and is not being maintained.
Cache Methods
Visual Studio 2010
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(Object) | 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(String, Object) | Inserts an item into the Cache object with a cache key to reference its location, using default values provided by the CacheItemPriority enumeration. |
|
Insert(String, Object, CacheDependency) | Inserts an object into the Cache that has file or key dependencies. |
|
Insert(String, Object, CacheDependency, DateTime, TimeSpan) | Inserts an object into the Cache with dependencies and expiration policies. |
|
Insert(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemUpdateCallback) | Inserts an object into the Cache object together with dependencies, expiration policies, and a delegate that you can use to notify the application before the item is removed from the cache. |
|
Insert(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback) | Inserts an object into 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. |
|
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 | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
IEnumerable::GetEnumerator | Returns an enumerator that can iterate through the Cache object collection. |
Show: