Remove expired keys #2

ruckus opened this Issue Dec 31, 2010 · 1 comment


None yet

2 participants

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.


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