Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Jan 2, 2024
1 parent 58c5519 commit d590e5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _docs/zh/api/ttl.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ Shell工具中以下命令可以查询和设置TTL:
同时满足以上3个条件的场景,就可以通过`表级TTL``Manual Compact`的功能实现清理磁盘释放资源的目的。

# 通过TTL计算数据写入时间
如果数据写入时设置了TTL,则可以通过TTL计算出数据写入的时间,公式是:
如果数据写入时设置了TTL,则可以通过TTL计算出数据写入的时间。
由于:
```
ExpireTime = InsertTime + TTLSeconds = now + TTLRemainingSeconds
==>
```
因此:
```
InsertTime = now + TTLRemainingSeconds - TTLSeconds
```
其中:
Expand Down
Binary file modified assets/images/pegasus-ttl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d590e5e

Please sign in to comment.