Commit 38ed206
Enable TTL on DynamoDB table creation
This commit adds TTL enablement to the DynamoDB store setup process.
Previously, TTL values were stored in items but the table-level TTL
feature was never enabled, meaning expired items would never be
automatically deleted by DynamoDB.
Changes:
- Added update_time_to_live call in _setup() method
- Enabled TTL on the 'ttl' attribute after table creation
- Added error handling for ValidationException (already enabled case)
This addresses one of the critical issues identified in #168 for
marking DynamoDB store as stable. Batch operations implementation
is deferred to a future PR.
Co-authored-by: William Easton <[email protected]>1 parent 23f4a9c commit 38ed206
File tree
1 file changed
+14
-0
lines changed- key-value/key-value-aio/src/key_value/aio/stores/dynamodb
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
167 | 181 | | |
168 | 182 | | |
169 | 183 | | |
| |||
0 commit comments