added ttl_settings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user