Skip to main content

Module cache

Module cache 

Source
Expand description

Atomic JSON cache under $SKIFF_CACHE_DIR.

Writes use crate::fsutil::atomic_write_0600. Cache keys hash connection config (excluding filter/TTL fields).

Re-exports§

pub use crate::paths::DEFAULT_CACHE_TTL as DEFAULT_TTL;

Functions§

atomic_write_json
Atomically write JSON to path (temp + rename) with mode 0o600.
cache_key_for
load_cached
load_cached_default
save_cache