Click or drag to resize
CacheHelperAddPersistentDataType Method
Saves the persistent item to the file

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static PersistentCacheItem<DataType> AddPersistent<DataType>(
	string cacheKey,
	DataType data,
	CMSCacheDependency cd,
	int cacheMinutes,
	DateTime expires,
	DateTime fileExpires,
	string siteName
)

Parameters

cacheKey
Type: SystemString
Cache key
data
Type: DataType
Data to cache
cd
Type: CMS.HelpersCMSCacheDependency
Cache dependency
cacheMinutes
Type: SystemInt32
Cache minutes for the standard cache item
expires
Type: SystemDateTime
Expiration time
fileExpires
Type: SystemDateTime
Expiration time for the physical file
siteName
Type: SystemString
Site name

Type Parameters

DataType

Return Value

Type: PersistentCacheItemDataType
See Also