hanahmily commented on code in PR #332: URL: https://github.com/apache/skywalking-banyandb/pull/332#discussion_r1328095142
########## docs/crud/property.md: ########## @@ -111,6 +128,45 @@ List operation lists all properties in a group with a name. $ bydbctl property list -g sw -n ui_template ``` +## TTL field in a property + +TTL field in a property is used to set the time to live of the property. The property will be deleted automatically after the TTL. + +This functionality is supported by the lease mechanism. The readonly lease_id field is used to identify the lease of the property. + +### Examples of setting TTL + +```shell +$ bydbctl property apply -f - <<EOF +metadata: + container: + group: sw + name: ui_template Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
