Inserts an object into the System.Web.Caching.Cache that has file or key dependencies.
- 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 null.
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 CacheItemPriority.Default, a sliding expiration value of Cache.NoSlidingExpiration, and an absolute expiration value of Cache.NoAbsoluteExpiration.