Wraith. Janitor
(Wraith v0.1.0)
View Source
Housekeeping once an hour: expired author and member sessions, used
single-use tokens and seen Stripe events are deleted (they sit on the
SESSIONS index sorted by expiry, so one range query finds them). On
DynamoDB the table's TTL on ttl does the same on its own; this keeps SQL
and the memory store honest too. Not started in tests; sweep/0 runs one
pass.
Summary
Functions
Returns a specification to start this module under a supervisor.
Delete every expiring item whose expiry is in the past. Returns how many.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Delete every expiring item whose expiry is in the past. Returns how many.