| 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.9.3
Syntax public virtual NearCacheConfig SetMaxSize(
int maxSize
)
Public Overridable Function SetMaxSize (
maxSize As Integer
) As NearCacheConfig
public:
virtual NearCacheConfig^ SetMaxSize(
int maxSize
)
abstract SetMaxSize :
maxSize : int -> NearCacheConfig
override SetMaxSize :
maxSize : int -> NearCacheConfig
Parameters
- maxSize
- Type: SystemInt32
the maximum size of the Near Cache
Return Value
Type:
NearCacheConfigthis Near Cache config instance
See Also