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

Remove expired keys #2

Open
ruckus opened this issue Dec 31, 2010 · 1 comment
Open

Remove expired keys #2

ruckus opened this issue Dec 31, 2010 · 1 comment

Comments

@ruckus
Copy link

ruckus commented Dec 31, 2010

I see that the expires flag just works by respecting that on reads - but since Mongo doesnt implement any native expiring functionality it means that those key/values will just accumulate forever.

Should this be mentioned in the docs? That is, users might want to implement their own expiry sweeping mechanism? Probably just add an index on +expires+ and then sweep it via cron.

@jnunemaker
Copy link
Owner

That is true. If flushing expired is necessary some process like this would be needed. I'll leave this open til I doc it a bit in the readme or something.

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

2 participants