Constructs cache dictionary wrapper.
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- uniqueKey
- Type: System String
Unique key for caching
- fetchDataFunc
- Type: System Func TKey, TValue
Function used to get one item by its key
- cachePersistence
- Type: System Nullable TimeSpan
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: System Nullable TimeSpan
Item will stay in cache as long as it is accessed once in that time. (not used if null)
See Also