set default *file_csv cache TTL to 5s

File exporters require positive TTL as content is flushed only upon cache
expiration.
This commit is contained in:
ionutboangiu
2025-03-18 12:36:58 +02:00
committed by Dan Christian Bogos
parent de448ae11c
commit 364827ab58
5 changed files with 9 additions and 5 deletions

View File

@@ -401,7 +401,7 @@ func testConfigSSetConfigEEs(t *testing.T) {
"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},
"*file_csv": map[string]any{"limit": -1., "ttl": "5s", "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},