Class QueueCacherHost<TData>
- Namespace
- Hi.Common.QueueCacheUtils
- Assembly
- HiGeom.dll
This cacher suits scattered IO with repeatity.
public class QueueCacherHost<TData> where TData : class
Type Parameters
TData
The type of data to cache
- Inheritance
-
QueueCacherHost<TData>
- Inherited Members
- Extension Methods
Properties
Capacity
Gets or sets the maximum number of items to keep in the cache.
public int Capacity { get; set; }
Property Value
Provider
Gets or sets the function that provides data when it's not in the cache.
public Func<TData> Provider { get; set; }
Property Value
- Func<TData>
Methods
Clear()
Clears all items from the cache.
public void Clear()