Renamed cache in caches

This commit is contained in:
adragusin
2019-12-18 14:35:39 +02:00
parent 7012c7c7e1
commit b53ee5f19f
15 changed files with 14 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ func TestCacheCfgloadFromJsonCfg(t *testing.T) {
t.Errorf("Expected: %+v ,recived: %+v", expected, cachecfg)
}
cfgJSONStr := `{
"cache":{
"caches":{
"*destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false},
"*reverse_destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false},
"*rating_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false},

View File

@@ -152,7 +152,7 @@ const CGRATES_CFG_JSON = `
},
"cache":{
"caches":{
"*destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // destination caching
"*reverse_destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // reverse destinations index caching
"*rating_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // rating plans caching

View File

@@ -24,7 +24,7 @@ import (
const (
GENERAL_JSN = "general"
CACHE_JSN = "cache"
CACHE_JSN = "caches"
LISTEN_JSN = "listen"
HTTP_JSN = "http"
DATADB_JSN = "data_db"

View File

@@ -131,7 +131,7 @@
// },
// "cache":{
// "caches":{
// "*destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // destination caching
// "*reverse_destinations": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // reverse destinations index caching
// "*rating_plans": {"limit": -1, "ttl": "", "static_ttl": false, "precache": false}, // rating plans caching

View File

@@ -23,7 +23,7 @@
"db_type":"*internal",
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -23,7 +23,7 @@
"db_type":"*internal",
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -32,7 +32,7 @@
"db_port": 27017,
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -32,7 +32,7 @@
"db_port": 27017,
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -23,7 +23,7 @@
"db_type":"*internal",
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -20,7 +20,7 @@
"db_name": "13"
},
"cache":{
"caches":{
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
},

View File

@@ -35,7 +35,7 @@
},
"cache":{
"caches":{
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},

View File

@@ -29,7 +29,7 @@
},
"cache":{
"caches":{
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},

View File

@@ -25,7 +25,7 @@
},
"cache":{
"caches":{
"*destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*reverse_destinations": {"limit": 10000, "ttl":"0s", "precache": true},
"*rating_plans": {"limit": 10000, "ttl":"0s","precache": true},

View File

@@ -17,7 +17,7 @@
},
"cache":{
"caches":{
"*rpc_responses": {"limit": -1, "ttl": "1s"},
},

View File

@@ -363,7 +363,6 @@ const (
NonTransactional = "" // used in transactional cache mechanism
DataDB = "data_db"
StorDB = "stor_db"
Cache = "cache"
NotFoundCaps = "NOT_FOUND"
ServerErrorCaps = "SERVER_ERROR"
MandatoryIEMissingCaps = "MANDATORY_IE_MISSING"