Authored by 梁志锋

业务使用memcached时,要指定超时时间等配置

Showing 1 changed file with 4 additions and 1 deletions
... ... @@ -66,7 +66,10 @@ app.use(session({
},
store: new MemcachedStore({
hosts: config.memcache.session,
prefix: 'yohobuy_session:'
prefix: 'yohobuy_session:',
timeout: 100,
retries: 0,
reconnect: 5000
})
}));
... ...