How do I configure Redis as my session store?
JavaScript CSS
Permalink
Failed to load latest commit information.
api Sessions May 9, 2014
assets Sessions May 9, 2014
config Sessions May 9, 2014
tasks Sessions May 9, 2014
views Sessions May 9, 2014
.editorconfig Sessions May 9, 2014
.gitignore Sessions May 9, 2014
.sailsrc Sessions May 9, 2014
Gruntfile.js Sessions May 9, 2014
LICENSE MIT May 20, 2014
README.md Expanded readme to include instructions on how to play w/ this repo Jul 1, 2014
app.js Sessions May 9, 2014
package.json Normalize package.josn May 20, 2014

README.md

How do I configure Redis as my session store?

To test this out, lift this app and visit http://localhost:1337/session/increment.

If you refresh a few times, you'll see the counter increase. Then, if you kill the server and start it up again, you'll see that the counter still has the same value (b/c your session is being persisted in Redis).

TODO: expand this readme

See config/session.js