Sets the timeToLive duration for region entries.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.0

Syntax

C#
public int SetEntryTimeToLive(
	int timeToLive
)
Visual Basic (Declaration)
Public Function SetEntryTimeToLive ( _
	timeToLive As Integer _
) As Integer
Visual C++
public:
int SetEntryTimeToLive (
	int timeToLive
)

Parameters

timeToLive
Int32
the timeToLive in seconds for entries in this region, or 0 to disable time-to-live

Return Value

the previous value

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::IllegalStateException if the new timeToLive changes entry expiration from disabled to enabled or enabled to disabled

See Also