TAbstractMtxVecCache Class

type TAbstractMtxVecCache = class(TPersistent);

Abstract class for object cache.

Properties

NameTypeDescription
CacheElementsIntegerReturns the number of precreated objects inside object cache.
CacheFullBooleanReturns true, if currently there are no free objects in cache.
CacheSizeIntegerReturns the number of objects in the object cache.
CacheUsedCountIntegerReturns the number of currently used objects in the object cache.
CacheWasFullBooleanReturns true, if object cache was too small.
ConditionCheckBooleanSets ConditionCheck for all items in the list.
MaxCountIntegerRead only property. Maximum number of objects used inside object cache.

Methods

NameDescription
EnterCall Enter to enable thread exclusive access.
LeaveCall Leave to end thread exclusive access.
SetCacheSizeSets the cache object count to ItemCount and allocates Elements count of data elements per object.
TryEnterCall Enter to enable thread exclusive access.