O'Reilly logo
  • Patrick S thinks this is interesting:

To use Redis as a session store in an Express.js server (ch12/app.js), enter the following:

var express = require('express');
var app = express();
var cookieParser = require('cookie-parser');
var session = require('express-session');
var RedisStore = require('connect-redis')(session);

app.use(cookieParser());
app.use(session({
  resave: true,
  

From

Cover of Pro Express.js

Note

using redis as a session store