Click or drag to resize

NearCacheConfigSetTimeToLiveSeconds Method

Returns the maximum number of seconds for each entry to stay in the Near Cache (time to live).
Entries that are older than {@code timeToLiveSeconds} will automatically be evicted from the Near Cache.
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 SetTimeToLiveSeconds(
	int timeToLiveSeconds
)

Parameters

timeToLiveSeconds
Type: SystemInt32
the maximum number of seconds for each entry to stay in the Near Cache

Return Value

Type: NearCacheConfig
this Near Cache config instance
See Also