AttributesMutatorSetEntryTimeToLive Method |
Sets the timeToLive duration for region entries.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic int SetEntryTimeToLive(
int timeToLive
)
Public Function SetEntryTimeToLive (
timeToLive As Integer
) As Integer
public:
int SetEntryTimeToLive(
int timeToLive
)
member SetEntryTimeToLive :
timeToLive : int -> int
Parameters
- timeToLive
- Type: SystemInt32
the timeToLive in seconds for entries in this region, or 0 to disable time-to-live
Return Value
Type:
Int32the previous value
ExceptionsException | Condition |
---|
IllegalStateException |
if the new timeToLive changes entry expiration from
disabled to enabled or enabled to disabled
|
See Also