Click or drag to resize
AttributesMutatorSetRegionTimeToLive Method
Sets the timeToLive duration for the region itself.

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public int SetRegionTimeToLive(
	int timeToLive
)

Parameters

timeToLive
Type: SystemInt32
the timeToLive for this region, in seconds, or 0 to disable time-to-live

Return Value

Type: Int32
the previous value
Exceptions
ExceptionCondition
IllegalStateException if the new timeToLive changes region expiration from disabled to enabled or enabled to disabled.
See Also