Skip to main content

install_config

Function install_config 

Source
pub fn install_config(
    options: CompressOptions,
    max_cache_entries: usize,
    max_cache_bytes: usize,
    ccr_ttl_secs: Option<u64>,
    disk_tier_root: Option<PathBuf>,
)
Expand description

Install the full TokenJuice runtime configuration in one call at startup: router/compressor options, CCR cache limits, and the optional on-disk tier. Kept free of the config-schema type so tokenjuice stays decoupled — the caller maps Config.tokenjuice into these primitives.