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

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

Parameters

cacheAccessor
Type: CMS.Helpers.Caching.AbstractionsICacheAccessor
Cache into which the item is inserted.
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