Cache.Insert Method (String, Object, CacheDependency)
.NET Framework 2.0
Inserts an object into the Cache that has file or key dependencies.
Namespace: System.Web.Caching
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public void Insert ( String key, Object value, CacheDependency dependencies )
public function Insert ( key : String, value : Object, dependencies : CacheDependency )
Not applicable.
Parameters
- key
The cache key used to identify the item.
- value
The object to be inserted in the cache.
- dependencies
The file or cache key dependencies for the inserted object. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies, this parameter contains a null reference (Nothing in Visual Basic).
This method will overwrite an existing cache item whose key matches the key parameter. The object added to the cache using this overload of the Insert method is inserted with no file or cache dependencies, a priority of Default, a sliding expiration value of NoSlidingExpiration, and an absolute expiration value of NoAbsoluteExpiration.
Community Additions
ADD
Show: