Created
May 18, 2012 04:41
-
-
Save KarbonDallas/2723185 to your computer and use it in GitHub Desktop.
redis-connect session snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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