tnantoka/connect-fs — pull request #3 by thehunmonkgroup (2012-02-18 17:15:22+00:00)
Title: add reapInterval option, for cleaning out expired sessions

The session file store at https://github.com/odogono/connect-session-file wasn't as nice as this one, but one thing it did have that's missing in connect-fs is a way to clean out expired sessions.

So I ported over the reapInterval option from that module. Tested pretty thoroughly, deletes expired sessions, doesn't delete non-expired sessions, and works ok when there are no sessions at all.