mde/geddy — pull request #128 by ekryski (2012-04-27 05:53:42+00:00)
Title: Mongo session

So I added the mongo session and made a couple minor tweaks to the redis session store.

In the redis store it was mainly just typos and fixing up variables that weren't properly scoped (however I didn't actually test it).

The mongo session store is very basic. Sessions will just stick around in the session database so I think eventually you guys might need a mechanism for flushing old ones. Also, there aren't any unit tests as I don't really think some of the stuff is set up to be very testable with plain old asserts. I did however, test it manually. If you would like me to add some unit tests I will but I would like to use mocha, should, and a small mocking library called stub.js. I have had some great success with those modules. Let me know if there is anything you want me to change!