added ttl_settings

This commit is contained in:
javi
2011-10-21 17:42:57 +02:00
parent e5da826b94
commit 102e17363f
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -8,3 +8,4 @@ module.exports.windshaft_port = 8181;
module.exports.lru_cache = true;
module.exports.lru_cache_size = 10000;
module.exports.enable_cors = true;
module.exports.ttl_timeout = 5;
+1
View File
@@ -4,3 +4,4 @@ module.exports.redis = {host: '127.0.0.1', port: 6379};
module.exports.windshaft_port = 8181;
module.exports.lru_cache = true;
module.exports.lru_cache_size = 10000;
module.exports.ttl_timeout = 600; // 10 minutes
+2 -1
View File
@@ -9,7 +9,8 @@ module.exports = function(){
redis: global.environment.redis,
enable_cors: global.environment.enable_cors,
lru_cache: global.environment.lru_cache,
lru_cache_size: global.environment.lru_cache_size
lru_cache_size: global.environment.lru_cache_size,
ttl_timeout: global.environment.ttl_timeout
};
/**