Node.js Express using Session with Redis Cluster
Dependencies
express
express-session
connect-redis
ioredis
$ npm install express express-session connect-redis ioredis
Redis - Single Node
install & run redis
run in cmd
$ redis-cli
run this in redis-cli
redis> FLUSHALL
redis> keys *
then there are no keys in redis store.
and make js file for running express. refer below code
var express = require('express');
var app = express();
var session = require('express-session');
var RedisStore = ...