Click or drag to resize
CacheHelperInsertInternal Method
Inserts the item into the cache.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
protected virtual void InsertInternal(
	string key,
	Object value,
	CMSCacheDependency dependencies,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration,
	CMSCacheItemPriority priority,
	CMSCacheItemRemovedCallback onRemoveCallback,
	bool useFullKey
)

Parameters

key
Type: SystemString
Cache key
value
Type: SystemObject
Value to cache
dependencies
Type: CMS.HelpersCMSCacheDependency
Cache dependencies
absoluteExpiration
Type: SystemDateTime
Absolute expiration time
slidingExpiration
Type: SystemTimeSpan
Sliding expiration interval
priority
Type: CMS.HelpersCMSCacheItemPriority
Cache priority
onRemoveCallback
Type: CMS.HelpersCMSCacheItemRemovedCallback
Callback called on the removal of the item
useFullKey
Type: SystemBoolean
If true, the full cache key is used
See Also