setItemWithTtl

abstract suspend fun setItemWithTtl(itemKey: String, itemData: <Error class: unknown class>, ttl: <Error class: unknown class>): SyncMap.Item

Set Item in the SyncMap.

Return

Item which has been set.

Parameters

itemKey

Key of the item to set.

itemData

Item data to set as a JsonObject.

ttl

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

Throws

TwilioException

When error occurred while setting the Item.