Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Cache Class
Cache Methods
Insert Method
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Cache..::.Insert Method

Updated: November 2007

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.

  NameDescription
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 and priority 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.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker