LeastRecentlyUsedCache<KT,VT>(Int32, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create LRU cache with specified capacity
public LeastRecentlyUsedCache(int capacity, bool preallocate = true);
new MixedReality.Toolkit.Data.LeastRecentlyUsedCache<'KT, 'VT (requires 'VT :> MixedReality.Toolkit.Data.LRUValue<'KT>)> : int * bool -> MixedReality.Toolkit.Data.LeastRecentlyUsedCache<'KT, 'VT (requires 'VT :> MixedReality.Toolkit.Data.LRUValue<'KT>)>
Public Sub New (capacity As Integer, Optional preallocate As Boolean = true)
Parameters
- capacity
- Int32
How many entries to allow.
- preallocate
- Boolean
Whether to preallocate space to avoid cost later.