mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Renamed cache in caches
This commit is contained in:
@@ -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},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"db_type":"*internal",
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"db_type":"*internal",
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"db_port": 27017,
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"db_type":"*internal",
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"db_name": "13"
|
||||
},
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*dispatcher_routes": {"limit": -1, "ttl": "2s"}
|
||||
},
|
||||
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
},
|
||||
|
||||
|
||||
"cache":{
|
||||
"caches":{
|
||||
"*rpc_responses": {"limit": -1, "ttl": "1s"},
|
||||
},
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user