Language
Edit

LeastRecentlyUsedCache<KT,VT>.SetSize(Int32, Boolean) Method

Definition

Change the size of the cache.

public void SetSize(int newSize, bool preallocate = true);
member this.SetSize : int * bool -> unit
Public Sub SetSize (newSize As Integer, Optional preallocate As Boolean = true)

Parameters

newSize
Int32

The new size to make cache.

preallocate
Boolean

Whether to preallocate space to avoid cost later.

Remarks

NOTE: You can only currently increase the size.

Applies to