Configure TTL on Container
b) Select the provisioned Azure Cosmos DB or provision a new one.
c) Navigate to Data Explorer and select the Container as shown below and click on "Settings" to find the TTL setting.
d) Set the TTL to 3600 seconds and click on "Save".
Configure TTL on an item
b) Select the provisioned Azure Cosmos DB or provision a new one.
c) Set the TTL for the container as shown above.
c) Navigate to Data Explorer and select the Container and the Item for which you need to add TTL and include the "ttl": 10, to the item JSON where (10 is the TTL value in seconds)
No comments:
Post a Comment