...
|
...
|
@@ -13,7 +13,7 @@ const RedisStore = redis(session); |
|
|
*/
|
|
|
function yohoSession(opts) {
|
|
|
return (req, res, next) => {
|
|
|
let notUseRedis = _.get(req.app.locals.pc, 'session.removeRedis', false);
|
|
|
let notUseRedis = _.get(req.app.locals.pc, 'session.removeMemcached', false); // 开关字段暂时复用原字段名
|
|
|
|
|
|
opts.backSession = opts.backSession || 'session2';
|
|
|
if (req.session && !notUseRedis) {
|
...
|
...
|
|