CacheHelperAddPersistentDataType Method |
Saves the persistent item to the file
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax 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:
PersistentCacheItemDataTypeSee Also