mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
added default caching for exporters
This commit is contained in:
committed by
Dan Christian Bogos
parent
594dc745b8
commit
322afc585f
@@ -319,12 +319,12 @@ func benchmarkCall(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkcapsWithLimit(b *testing.B) {
|
||||
benchmarkInit(b, "caps_queue_bench")
|
||||
benchmarkCall(b)
|
||||
}
|
||||
// func BenchmarkcapsWithLimit(b *testing.B) {
|
||||
// benchmarkInit(b, "caps_queue_bench")
|
||||
// benchmarkCall(b)
|
||||
// }
|
||||
|
||||
func BenchmarkcapsWithoutLimit(b *testing.B) {
|
||||
benchmarkInit(b, "tutmysql")
|
||||
benchmarkCall(b)
|
||||
}
|
||||
// func BenchmarkcapsWithoutLimit(b *testing.B) {
|
||||
// benchmarkInit(b, "tutmysql")
|
||||
// benchmarkCall(b)
|
||||
// }
|
||||
|
||||
@@ -399,8 +399,18 @@ func testConfigSSetConfigEEs(t *testing.T) {
|
||||
exp := map[string]any{
|
||||
"enabled": true,
|
||||
"attributes_conns": []any{},
|
||||
"cache": map[string]any{"*file_csv": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false, "ttl": "5s"}},
|
||||
"exporters": []any{eporter},
|
||||
"cache": map[string]any{
|
||||
"*file_csv": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*amqp_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*amqpv1_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*els": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*kafka_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*nats_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*s3_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*sql": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
"*sqs_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
|
||||
},
|
||||
"exporters": []any{eporter},
|
||||
}
|
||||
exp = map[string]any{
|
||||
config.EEsJson: exp,
|
||||
|
||||
Reference in New Issue
Block a user