Language
Edit

LeastRecentlyUsedCache<KT,VT>(Int32, Boolean) Constructor

Definition

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.

Applies to