LeastRecentlyUsedCache<KT,VT>.SetSize(Int32, Boolean) Method
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.
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.