qnabot-on-aws
qnabot-on-aws copied to clipboard
Optional userinfo ttl
Issue #, if available:
Description of changes:
This PR adds the ability to set a TTL on records added to the DynamoDB UsersTable by adding:
- a TimeToLiveSpecification to the UserTable setting the TTL field to ttl
- a setting called USERINFO_TTL_DAYS
- functionality to the fulfillment lambda which causes it to set an appropriate ttl on user cache records every time a new interaction occurs, IF the USERINFO_TTL_DAYS setting is greater than zero
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Thanks @richhaase for contributing! This looks like a useful feature. We will review and get back to you.