Skip to content

Commit

Permalink
docs: add note about DynamoDB TTL configuration
Browse files Browse the repository at this point in the history
Close #35
  • Loading branch information
Julien-R44 committed Oct 1, 2024
1 parent 96c1924 commit d0024dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/docs/cache_drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ const bento = new BentoCache({
})
```

You will also need to create a DynamoDB table with a string partition key named `key`. You must create this table before starting to use the driver.
You will also need to create a DynamoDB table with a string partition key named `key`. You must create this table before starting to use the driver.

**Make sure to also enable [Time To Live (TTL)](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html) on the table, on the `ttl` attribute. This will allow DynamoDB to automatically delete expired items.**

| Option | Description | Default |
| --- | --- | --- |
Expand Down

0 comments on commit d0024dd

Please sign in to comment.