Skip to content

Commit

Permalink
Update ttl-options.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Apr 10, 2023
1 parent c73444e commit 5232ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-2.0/3.ngql-guide/8.clauses-and-options/ttl-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nGQL 支持的 TTL 选项如下。
|选项|说明|
|:---|:---|
|`ttl_col`|指定要设置存活时间的属性。属性的数据类型必须是`int`或者`timestamp`|
|`ttl_duration`|指定时间戳差值,默认单位:秒。时间戳差值必须为 64 位非负整数。属性值和时间戳差值之和如果小于当前时间戳,属性就会过期。如果`ttl_duration``0`,属性永不过期。<br/>可在配置文件`nebula-storaged.conf`(默认路径`/usr/local/nightly/etc/`)中设置`ttl_use_ms``true`将默认单位设为毫秒。**注意:在修改`ttl_use_ms`参数前,请确保没有为属性设置 TTL,否则会因为过期时间发生变化,导致数据被错误地删除。**|
|`ttl_duration`|指定时间戳差值,默认单位:秒。时间戳差值必须为 64 位非负整数。属性值和时间戳差值之和如果小于当前时间戳,属性就会过期。如果`ttl_duration``0`,属性永不过期。<br/>可在配置文件`nebula-storaged.conf`(默认路径`/usr/local/nightly/etc/`)中设置`ttl_use_ms``true`将默认单位设为毫秒。**注意:在配置`ttl_use_ms`参数前,请确保没有为属性设置 TTL,否则会因为过期时间缩短,导致数据被错误地删除。**|

## 属性过期

Expand Down

0 comments on commit 5232ba5

Please sign in to comment.