Click or drag to resize

CacheKeyType, ValueType Constructor

Constructor.

Namespace: Demo3D.Visuals.KJE
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public Cache(
	int capacity
)

Parameters

capacity  Int32
The maximum capacity for the cache.
Remarks
It is recommended to use as small a capacity as possible so as to ensure that accesses via the TryGetNearest(KeyType, ICacheKeyComparerKeyType, KeyType, ValueType) method are reasonably fast.
See Also