expire data after configurable interval #7

merged 1 commit into from Jul 9, 2013


None yet

2 participants


Addresses Issue #8.

In its present form, restmail accumulates emails indefinitely. This can lead to the redis db overflowing memory.

E.g., http://irclog.gr/#show/irc.mozilla.org/identity/293731

This PR adds auto-expiration of all data after a configurable interval.

Mozilla member

@jedp This looks good. The redis docs claim that redis scans 1000 randomly-selected keys per second, deleting the expired ones--given a reasonable TTL and a reasonably small number of emails received per minute, this should help a lot with minimizing memory usage. 🍻

@6a68 6a68 merged commit bed6c91 into mozilla:master Jul 9, 2013

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment