feat: Option to save cache asyncronously (#2883)

This PR adds an option to save cache to file asynchronously in parallel
with shutting down the rest of Clio services.
This commit is contained in:
Sergey Kuznetsov
2026-01-07 17:20:56 +00:00
committed by GitHub
parent 79c08fc735
commit 9f76eabf0a
6 changed files with 85 additions and 13 deletions

View File

@@ -361,6 +361,7 @@ getClioConfig()
{"cache.load", ConfigValue{ConfigType::String}.defaultValue("async").withConstraint(gValidateLoadMode)},
{"cache.file.path", ConfigValue{ConfigType::String}.optional()},
{"cache.file.max_sequence_age", ConfigValue{ConfigType::Integer}.defaultValue(5000)},
{"cache.file.async_save", ConfigValue{ConfigType::Boolean}.defaultValue(false)},
{"log.channels.[].channel",
Array{ConfigValue{ConfigType::String}.optional().withConstraint(gValidateChannelName)}},