CacheHelper.AddPersistent<DataType> Method |
Saves the persistent item to the file
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntaxpublic static PersistentCacheItem<DataType> AddPersistent<DataType>(
string cacheKey,
DataType data,
CMSCacheDependency cd,
int cacheMinutes,
DateTime expires,
DateTime fileExpires,
string siteName
)
Parameters
- cacheKey
- Type: System.String
Cache key - data
- Type: DataType
Data to cache - cd
- Type: CMS.Helpers.CMSCacheDependency
Cache dependency - cacheMinutes
- Type: System.Int32
Cache minutes for the standard cache item - expires
- Type: System.DateTime
Expiration time - fileExpires
- Type: System.DateTime
Expiration time for the physical file - siteName
- Type: System.String
Site name
Type Parameters
- DataType
Return Value
Type:
PersistentCacheItem<DataType>
See Also