Click or drag to resize
CacheHelperAdd Method (String, Object, CMSCacheDependency, DateTime, TimeSpan, CMSCacheItemPriority, CMSCacheItemRemovedCallback, Boolean)
Mirror to Cache.Add().

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static void Add(
	string key,
	Object value,
	CMSCacheDependency dependencies,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration,
	CMSCacheItemPriority priority,
	CMSCacheItemRemovedCallback 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: CMS.HelpersCMSCacheItemPriority
Cache priority
onCacheRemoveCallback (Optional)
Type: CMS.HelpersCMSCacheItemRemovedCallback
Cache callback on remove
caseSensitive (Optional)
Type: SystemBoolean
Cache key is case sensitive
See Also