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

标签 amazon-web-services amazon-dynamodb

我读了这篇文档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 deleted can still be updated, and successful updates to change or remove the expiration attribute will be honored.

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

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

相关文章:

node.js - AWS 的 Claudiajs hello 词示例中未加载凭证

node.js - AWS - Lambda 无法访问 ElasticTranscoder

python - 在AWS lambda函数中获取日志两次

c# - 如何在 Linux 环境中将 .NET (C#) 程序发布到 AWS BeanStalk?

python - 如何将 ddbmock 与 dynamodb-mapper 一起使用?

spring - Dynamodb连接: strange behaviour

c# - 如何在 ParameterStore aws .NET C# 中设置参数的过期时间?

node.js - 当两个包同名时如何安装正确的 NPM 包?

ios - 使用 Swift 的 AWS DynamoDB 查询

amazon-web-services - DynamoDB ProjectionExpression 排除属性(除一个字段外的所有字段)