Partager via


CacheManager.Add Method

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Overload List

  Name Description
Public method Add(String, Object)
Adds new CacheItem to cache. If another item already exists with the same key, that item is removed before the new item is added. If any failure occurs during this process, the cache will not contain the item being added. Items added with this method will be not expire, and will have a Normal CacheItemPriority priority.
Public method Add(String, Object, CacheItemPriority, ICacheItemRefreshAction, array<ICacheItemExpiration>)
Adds new CacheItem to cache. If another item already exists with the same key, that item is removed before the new item is added. If any failure occurs during this process, the cache will not contain the item being added.

See Also

CacheManager Class

CacheManager Members

Microsoft.Practices.EnterpriseLibrary.Caching Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.