  | 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.4
Syntaxpublic virtual NearCacheConfig SetTimeToLiveSeconds(
	int timeToLiveSeconds
)
Public Overridable Function SetTimeToLiveSeconds ( 
	timeToLiveSeconds As Integer
) As NearCacheConfig
public:
virtual NearCacheConfig^ SetTimeToLiveSeconds(
	int timeToLiveSeconds
)
abstract SetTimeToLiveSeconds : 
        timeToLiveSeconds : int -> NearCacheConfig 
override SetTimeToLiveSeconds : 
        timeToLiveSeconds : int -> NearCacheConfig Parameters
- timeToLiveSeconds
 - Type: SystemInt32
the maximum number of seconds for each entry to stay in the Near Cache 
Return Value
Type: 
NearCacheConfigthis Near Cache config instance
See Also