Skip to content

Instantly share code, notes, and snippets.

@KarbonDallas
Created May 18, 2012 04:41
Show Gist options
  • Save KarbonDallas/2723185 to your computer and use it in GitHub Desktop.
Save KarbonDallas/2723185 to your computer and use it in GitHub Desktop.
redis-connect session snippet
var
redisConf = {
host : "localhost"
, port : "6379"
}
, express = require('express')
, app = express.createServer()
, ConnectRedis = require('connect-redis')(express)
, redisStore = new ConnectRedis(redisConf)
;
app.use(express.session({
secret : "schfiftyfive"
, store : redisStore
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment