GigaSpaces XAP.NET Documentation
LfuSegmentEvictionStrategyBuilder Constructor (sizeLimit, evictionBatchSize, periodicClearTime, touchThreshold)
Class LibraryGigaSpaces.Core.Cache.EvictionLfuSegmentEvictionStrategyBuilderLfuSegmentEvictionStrategyBuilder(Int32, Int32, TimeSpan, Double)
Construct the builder
Declaration Syntax
C#Visual BasicVisual C++J#
public LfuSegmentEvictionStrategyBuilder(
	int sizeLimit,
	int evictionBatchSize,
	TimeSpan periodicClearTime,
	double touchThreshold
)
Public Sub New ( _
	sizeLimit As Integer, _
	evictionBatchSize As Integer, _
	periodicClearTime As TimeSpan, _
	touchThreshold As Double _
)
public:
LfuSegmentEvictionStrategyBuilder(
	int sizeLimit, 
	int evictionBatchSize, 
	TimeSpan periodicClearTime, 
	double touchThreshold
)
public LfuSegmentEvictionStrategyBuilder(
	int sizeLimit,
	int evictionBatchSize,
	TimeSpan periodicClearTime,
	double touchThreshold
)
Parameters
sizeLimit (Int32)
Local Cache sizelimit (Of all the segments)
evictionBatchSize (Int32)
How many entries to evict from cache when an eviction is required
periodicClearTime (TimeSpan)
Timespan between preiodic cache clears, each time this time span passes the local cache will be cleared
touchThreshold (Double)
When the number of objects in the cache exceeds this threshold, each time an object is accessed at the cache, the Touch(TKey, TValue) method of the eviction strategy will be called. Before the threshold is exceeded the Touch(TKey, TValue) method will not called thus improving the performance of the cache when it is not near its size limit because eviction is not likely to occur. The threshold is a number between 0 and 1 which represents a capacity out of the size limit, this is done by the following formula: touchThreshold * sizeLimit.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 9.0.2.6900 (9.0.2.6900)