connect-mongodb
connect-mongodb copied to clipboard
Suggestion.
Anybody (apart from me) ever seen a need for the following optional functionality 'afterReap' see here in
https://github.com/daithiw44/connect-mongodb#afterreap
afterReap: is an optional function passed in as an argument to return the sessionID's removed in the current reap of dead sessionID's.
Use case : I was using it where I had a sessionID and I was storing the ID against other collections and not against the session data as such and when the user left I'd want to know to clean up their footprints.
Just a suggestion if anyone thinks it might be worth having, else I'm happy to exist in my own version of my world.