Skip to main content

config_replace

Function config_replace 

Source
pub fn config_replace(cfg: Arc<Config>) -> Result<(), &'static str>
Expand description

Atomically swap in a new live config. Returns Err if init has never run — refusing to silently fabricate an initial state from a CONFIG SET call. The caller (CONFIG SET) maps the Err to the matching RESP error.