| NearCacheConfigSetMaxIdleSeconds Method |
Set the maximum number of seconds each entry can stay in the Near Cache as untouched (not read).
Namespace:
Hazelcast.Config
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.11
Syntax public virtual NearCacheConfig SetMaxIdleSeconds(
int maxIdleSeconds
)
Public Overridable Function SetMaxIdleSeconds (
maxIdleSeconds As Integer
) As NearCacheConfig
public:
virtual NearCacheConfig^ SetMaxIdleSeconds(
int maxIdleSeconds
)
abstract SetMaxIdleSeconds :
maxIdleSeconds : int -> NearCacheConfig
override SetMaxIdleSeconds :
maxIdleSeconds : int -> NearCacheConfig
Parameters
- maxIdleSeconds
- Type: SystemInt32
Return Value
Type:
NearCacheConfigthis Near Cache config instance
Remarks
Entries that are untouched (not read) more than maxIdleSeconds value will get removed from the Near Cache.
Accepts any integer between 0 and int.MaxValue. The value 0 means int.MaxValue.
The default is 0.
See Also