Export (0) Print
Expand All

Cache.Insert Method

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method 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.
Public method Insert(String, Object, CacheDependency) Inserts an object into the Cache that has file or key dependencies.
Public method Insert(String, Object, CacheDependency, DateTime, TimeSpan) Inserts an object into the Cache with dependencies and expiration policies.
Public method 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.
Public method 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.
Top
Show:
© 2014 Microsoft