ChatCacheWrapper<TData> Constructor Kentico 8.1 API Reference
Constructs CacheWrapper.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

uniqueKey
Type: OnlineSystem.String
Unique key of this cache item
fetchDataFunc
Type: OnlineSystem.Func<TData>
Function which gets data
cachePersistence
Type: OnlineSystem.Nullable<OnlineTimeSpan>
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: OnlineSystem.Nullable<OnlineTimeSpan>
Item will stay in cache as long as it is accessed once in that time. (not used if null)
See Also