Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 29d8e38

Browse files
committed
updating to use the right key.
1 parent 334c880 commit 29d8e38

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

server/initializers/database.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ module.exports = function () {
88
pub.init = function() {
99
mongoose.connect(process.env.MONGODB_URL);
1010
if (process.env.NODE_ENV === 'development') mongoose.set('debug', true);
11-
cache(mongoose, {host: process.env.MEMCACHE_SERVERS, cache: false});
12-
11+
cache(mongoose,
12+
{memServer: process.env.MEMCACHE_SERVERS, cache: false,
13+
memOptions: {reconnect: 1000, timeout: 1000, retries: 2, failures: 2}
14+
});
1315
};
1416

1517
return pub;

0 commit comments

Comments
 (0)