Class CachedSection<TData>
Cached section context handler.
[Obsolete("Class was not intended for public use and will be removed. Use interface IProgressiveCache instead.")]
public class CachedSection<TData> : CachedSection
Type Parameters
TData
- Inheritance
-
objectCachedSection<TData>
- Inherited Members
- Extension Methods
Constructors
CachedSection(ref TData, CacheSettings)
Creates new instance of CachedSection.
public CachedSection(ref TData result, CacheSettings settings)
Parameters
resultTDataReturns the result of the cached data if available
settingsCacheSettingsCache settings
CachedSection(ref TData, double, bool, string, params object[])
Creates new instance of CachedSection with absolute expiration.
public CachedSection(ref TData result, double cacheMinutes, bool condition, string customCacheItemName, params object[] cacheItemNameParts)
Parameters
resultTDataReturns the result of the cached data if available
cacheMinutesdoubleDefines how long this item will stay in cache (in minutes)
conditionboolCache condition
customCacheItemNamestringCustom cache item name
cacheItemNamePartsobject[]Cache item name parts
Fields
mData
Data to be cached / retrieved
protected TData mData
Field Value
- TData
Properties
Data
Data to be cached / retrieved
public TData Data { get; set; }
Property Value
- TData
Methods
Dispose()
Disposes the object.
public override void Dispose()
GetData()
Attempts to get the data from cache.
public TData GetData()
Returns
- TData