Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session store garbage collection #668

Closed
evanp opened this issue Oct 8, 2012 · 1 comment
Closed

session store garbage collection #668

evanp opened this issue Oct 8, 2012 · 1 comment

Comments

@evanp
Copy link

evanp commented Oct 8, 2012

I'm trying to implement session storage using the databank library (https://github.com/evanp/databank), and as far as I can tell old sessions are only cleaned up if there's a get() request for an expired session.

A periodic process to GC sessions would help keep storage requirements reasonable.

@tj
Copy link
Member

tj commented Oct 9, 2012

the GC portion is completely adhoc, redis happens to expire for you, others might require some manual queries etc. Do whatever you need to do and provide an option via the store's constructor, or you can check on GET as an alternative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants