Click or drag to resize

NearCacheConfigSetMaxSize Method

Sets the maximum size of the Near Cache. When the maxSize is reached, the Near Cache is evicted based on the policy defined.
Accepts any integer between 0 and int.MaxValue. The value 0 means int.MaxValue. The default is 0.

Namespace:  Hazelcast.Config
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.11
Syntax
public virtual NearCacheConfig SetMaxSize(
	int maxSize
)

Parameters

maxSize
Type: SystemInt32
the maximum size of the Near Cache

Return Value

Type: NearCacheConfig
this Near Cache config instance
See Also