Sets the timeToLive duration for the region itself.

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

Syntax

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

Parameters

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

Return Value

the previous value

Exceptions

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

See Also