Authored by 姜枫

fix memcache config

Showing 1 changed file with 2 additions and 2 deletions
... ... @@ -13,7 +13,7 @@ const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const favicon = require('serve-favicon');
const yohoLib = require('yoho-node-lib');
const session = require('express-session');
const session = require('yoho-express-session');
const memcached = require('connect-memcached');
const hbs = require('express-handlebars');
const pkg = require('./package.json');
... ... @@ -65,7 +65,7 @@ app.use(session({
store: new MemcachedStore({
hosts: config.memcache.session,
prefix: 'yohobuy_session:',
timeout: 100,
timeout: 1000,
retries: 0
})
}));
... ...