pub fn save_cache(
path: &PathBuf,
signature: &[String],
services: &[ServiceImpact],
)Expand description
What: Persist service impact cache payload and signature to disk as JSON.
Inputs:
path: Destination file for the serialized cache contents.signature: Current install list signature to store alongside the payload.services: Service impact metadata being cached.
Output:
- No return value; writes to disk best-effort and logs a debug message when successful.
Details:
- Serializes the data to JSON, writes it to
path, and includes the record count in logs.