pub async fn is_global_init_recently_completed(
pool: &Arc<Pool>,
prefix: &str,
threshold_secs: u64,
) -> Result<bool>Expand description
Checks if global initialization was recently completed within the given threshold.
This is used to skip initialization when another instance recently completed initialization (e.g., during rolling restarts).
§Arguments
conn- Redis connection managerprefix- Key prefix for multi-tenant supportthreshold_secs- Number of seconds to consider as “recent”
§Returns
Ok(true)- If initialization was completed within the thresholdOk(false)- If initialization was not completed or is staleErr(_)- Redis communication error