set cache settings in enviorments

This commit is contained in:
javi santana 2011-10-13 15:22:54 +02:00
parent c1ba45cf5a
commit ab808b1dcb
4 changed files with 15 additions and 5 deletions

View File

@ -4,4 +4,7 @@ module.exports.redis = {host: '127.0.0.1',
port: 6379, port: 6379,
idleTimeoutMillis: 1, idleTimeoutMillis: 1,
reapIntervalMillis: 1}; reapIntervalMillis: 1};
module.exports.windshaft_port = 8181; module.exports.windshaft_port = 8181;
module.exports.lru_cache = true;
module.exports.lru_cache_size = 10000;
module.exports.enable_cors = true;

View File

@ -1,4 +1,6 @@
module.exports.name = 'production'; module.exports.name = 'production';
module.exports.postgres = {user: 'tileuser', host: '127.0.0.1', port: 6432}; module.exports.postgres = {user: 'tileuser', host: '127.0.0.1', port: 6432};
module.exports.redis = {host: '127.0.0.1', port: 6379}; module.exports.redis = {host: '127.0.0.1', port: 6379};
module.exports.windshaft_port = 8181; module.exports.windshaft_port = 8181;
module.exports.lru_cache:true,
module.exports.lru_cache_size: 10000

View File

@ -4,4 +4,7 @@ module.exports.redis = {host: '127.0.0.1',
port: 6379, port: 6379,
idleTimeoutMillis: 1, idleTimeoutMillis: 1,
reapIntervalMillis: 1}; reapIntervalMillis: 1};
module.exports.windshaft_port = 8080; module.exports.windshaft_port = 8080;
module.exports.lru_cache = false;
module.exports.lru_cache_size = 10000;
module.exports.enable_cors = true;

View File

@ -7,7 +7,9 @@ module.exports = function(){
base_url: '/tiles/:table', base_url: '/tiles/:table',
grainstore: {datasource: global.environment.postgres}, grainstore: {datasource: global.environment.postgres},
redis: global.environment.redis, redis: global.environment.redis,
enable_cors: true enable_cors: global.environment.enable_cors,
lru_cache: global.environment.lru_cache,
lru_cache_size: global.environment.lru_cache_size
}; };
/** /**
@ -99,4 +101,4 @@ me.getMapMetadata = function(req, callback){
}; };
return me; return me;
}(); }();