I'm using connect-redis - https://github.com/visionmedia/connect-redis in my project.
Is there any on error event? Something, where I can put callback to tell me, that (for example) my app can't connect to redis server?
I tried to search but I have found nothing useful.
Part of my config code:
app.use(express.methodOverride());
app.use(expressLayouts);
app.use(express.json());
// app.use(express.logger('dev'));
app.use(express.cookieParser());
app.use(express.session({
secret: 'have a fun',
maxAge: new Date(Date.now() + 3600000),
store: new RedisStore( config[app.get('env')].redis ),
// store: new FileStore({path:'./data/sessions', useAsync:true})
}));
app.use(passport.initialize());
app.use(passport.session());
app.use(flash());
app.use(app.router);
Every useful tip is welcome...