LockingCacheOptionsPreallocateCapacity Property

Gets or sets whether adding the first item to the cache should allocate memory for the full cache Capacity. If , then the internal storage is dynamically reallocated while adding new elements until reaching Capacity. Set it to if it is almost certain that the cache will be full when using it.
Default value: .

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool PreallocateCapacity { get; set; }

Property Value

Boolean

See Also