gpt4 book ai didi

amazon-web-services - TTL 属性过期后更新时 Dynamodb 如何工作

转载 作者:行者123 更新时间:2023-12-02 02:46:57 24 4
gpt4 key购买 nike

我读了这篇文档How It Works: DynamoDB Time to Live (TTL) .

这意味着已经过期的商品可能仍然存在,就像标记为过期一样。

在这种情况下,我想知道如果我将 TTL 属性更新为将来的时间,Dynamodb 会识别更新并延迟将项目删除到新的 TTL,还是只是使用原始 TTL 删除它?

Items that are past their expiration, but have not yet been deleted can still be updated, and successful updates to change or remove the expiration attribute will be honored.

实际上上面的文档提到了这种情况,但我不确定它到底意味着什么。

最佳答案

是的,它会延迟到期时间。

正如您所指出的,关键语句位于 How It Works: DynamoDB Time to Live (TTL) :

Items that are past their expiration, but have not yet been deletedcan still be updated, and successful updates to change or remove theexpiration attribute will be honored.

因此,如果您在某个项目已排队等待过期之后但在该项目实际被删除之前修改过期属性,那么对过期属性的更改将是荣幸之至。

关于amazon-web-services - TTL 属性过期后更新时 Dynamodb 如何工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62637394/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com