qnabot-on-aws icon indicating copy to clipboard operation
qnabot-on-aws copied to clipboard

Optional userinfo ttl

Open richhaase opened this issue 8 months ago • 1 comments

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.

richhaase avatar Dec 26 '23 19:12 richhaase

Thanks @richhaase for contributing! This looks like a useful feature. We will review and get back to you.

marcburnie avatar Jan 04 '24 17:01 marcburnie