GigaSpaces XAP.NET Documentation
LruSegmentEvictionStrategyBuilder Constructor (sizeLimit, evictionBatchSize, doPeriodicClear, touchThreshold)
Class LibraryGigaSpaces.Core.Cache.EvictionLruSegmentEvictionStrategyBuilderLruSegmentEvictionStrategyBuilder(Int32, Int32, Boolean, Double)
Construct the builder
Declaration Syntax
C#Visual BasicVisual C++J#
public LruSegmentEvictionStrategyBuilder(
	int sizeLimit,
	int evictionBatchSize,
	bool doPeriodicClear,
	double touchThreshold
)
Public Sub New ( _
	sizeLimit As Integer, _
	evictionBatchSize As Integer, _
	doPeriodicClear As Boolean, _
	touchThreshold As Double _
)
public:
LruSegmentEvictionStrategyBuilder(
	int sizeLimit, 
	int evictionBatchSize, 
	bool doPeriodicClear, 
	double touchThreshold
)
public LruSegmentEvictionStrategyBuilder(
	int sizeLimit,
	int evictionBatchSize,
	boolean doPeriodicClear,
	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
doPeriodicClear (Boolean)
Should clear local cahe periodicly
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.1.2.7920 (9.1.2.7920)