ChatCacheWrapperTData Constructor |
Constructs CacheWrapper.
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax public ChatCacheWrapper(
string uniqueKey,
Func<TData> fetchDataFunc,
Nullable<TimeSpan> cachePersistence,
Nullable<TimeSpan> slidingExpiration
)
Parameters
- uniqueKey
- Type: SystemString
Unique key of this cache item - fetchDataFunc
- Type: SystemFuncTData
Function which gets data - cachePersistence
- Type: SystemNullableTimeSpan
Item in cache will stay in cache for the amount of time specified by this parameter. Then it will be renewed by calling fetchDataFunc. (not used if null). - slidingExpiration
- Type: SystemNullableTimeSpan
Item will stay in cache as long as it is accessed once in that time. (not used if null)
See Also