Skip to main content

Module cache

Module cache 

Source
Expand description

On-disk cache for the update check at ~/.config/dsp-cli/update_check.toml. See ADR-0015.

Modeled on crate::config::auth_cache::AuthCache, with two deliberate differences:

  • This cache is a single flat struct (one file, two fields), not a per-server BTreeMap.
  • A malformed/oversize/unreadable file is never an error. Every load failure degrades to UpdateCheckCache::default (logged at tracing::debug!). This cache is a disposable convenience — a corrupt copy must never break an unrelated command.
  • Saves are plain atomic writes (temp-sibling + rename) with no 0600 permission tightening: this file holds no secret, unlike auth.toml.

Structs§

UpdateCheckCache
In-memory view of ~/.config/dsp-cli/update_check.toml.