![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | NearCacheConfigGetTimeToLiveSeconds Method |
Returns the maximum number of seconds for each entry to stay in the Near Cache (time to live).
Entries that are older than timeToLiveSeconds will automatically be evicted from the Near Cache.
Namespace:
Hazelcast.Config
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
Syntaxpublic virtual int GetTimeToLiveSeconds()
Public Overridable Function GetTimeToLiveSeconds As Integer
public:
virtual int GetTimeToLiveSeconds()
abstract GetTimeToLiveSeconds : unit -> int
override GetTimeToLiveSeconds : unit -> int
Return Value
Type:
Int32the maximum number of seconds for each entry to stay in the Near Cache
See Also