业务使用memcached时,要指定超时时间等配置
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -66,7 +66,10 @@ app.use(session({ | @@ -66,7 +66,10 @@ app.use(session({ | ||
66 | }, | 66 | }, |
67 | store: new MemcachedStore({ | 67 | store: new MemcachedStore({ |
68 | hosts: config.memcache.session, | 68 | hosts: config.memcache.session, |
69 | - prefix: 'yohobuy_session:' | 69 | + prefix: 'yohobuy_session:', |
70 | + timeout: 100, | ||
71 | + retries: 0, | ||
72 | + reconnect: 5000 | ||
70 | }) | 73 | }) |
71 | })); | 74 | })); |
72 | 75 |
-
Please register or login to post a comment