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:
.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public bool PreallocateCapacity { get; set; }
Public Property PreallocateCapacity As Boolean
Get
Set
public:
property bool PreallocateCapacity {
bool get ();
void set (bool value);
}
member PreallocateCapacity : bool with get, set
Property Value
Boolean