我无法让 AWS DynamoDB TTL 正常工作。我将 ttl 属性设置为 ttl
,并设置 ttl
在我所有的行上 0
.我 6 天前这样做了,但我的数据库中仍有行,ttl 设置为 0
.
将 ttl 设置为 0 不起作用吗?
最佳答案
TTL 值 0
不起作用,根据这个:
Items with an expiration time greater than 5 years in the past are not deleted.
TTL 值是 Unix Epoch 格式的时间,其中
0
意味着 1970-01-01T00:00:00Z
——过去5年多。
关于amazon-dynamodb - AWS DynamoDB TTL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47499022/