setTtl

abstract suspend fun setTtl(ttl: <Error class: unknown class>)

Set time to live for this SyncList.

This TTL specifies the minimum time the object will live, sometime soon after this time the object will be deleted.

If time to live is not specified, object lives infinitely long.

TTL could be used in order to auto-recycle old unused objects, but building app logic, like timers, using TTL is not recommended.

Parameters

ttl

Time to live from now or Duration.INFINITE to indicate no expiry.

Throws

TwilioException

When error occurred while updating ttl.