Skip to content

TTL with spring-cloud-aws-starter-dynamodb DynamoDbTemplate #874

Answered by dominik-kovacs
huehnerlady asked this question in Q&A
Discussion options

You must be logged in to vote

Lately I was thinking about this as well. TTL of an item is based on an items attribute of your choice.

For example you can create an attribute called expirationDate with data type long (must be epoch seconds) and populate it yourself. Then in the aws console you tell dynamodb that expirationDate is your ttl attribute and it will take care of the rest.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by huehnerlady
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants