CacheHelperAdd Method (String, Object, CMSCacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback, Boolean) |
Note: This API is now obsolete.
Mirror to Cache.Add().
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax [ObsoleteAttribute("Use Add with CMSCacheItemRemovedCallback and CMSCacheItemPriority parameters instead.")]
public static void Add(
string key,
Object value,
CMSCacheDependency dependencies,
DateTime absoluteExpiration,
TimeSpan slidingExpiration,
CacheItemPriority priority,
CacheItemRemovedCallback onCacheRemoveCallback = null,
bool caseSensitive = false
)
Parameters
- key
- Type: SystemString
Cache key - value
- Type: SystemObject
Cache value - dependencies
- Type: CMS.HelpersCMSCacheDependency
Cache dependencies - absoluteExpiration
- Type: SystemDateTime
Cache absolute expiration - slidingExpiration
- Type: SystemTimeSpan
Cache sliding expiration - priority
- Type: System.Web.CachingCacheItemPriority
Cache priority - onCacheRemoveCallback (Optional)
- Type: System.Web.CachingCacheItemRemovedCallback
Cache callback on remove - caseSensitive (Optional)
- Type: SystemBoolean
Cache key is case sensitive
See Also