pub fn load_from_file(
cache: &RuleLevelCache,
identity: SnapshotIdentity,
path: &Path,
) -> Result<usize, SnapshotError>Expand description
Load path into cache. Returns the number of entries imported —
0 when the file is absent, stale, or corrupt (a miss).
Entries already present in cache win: RuleLevelCache::add
rejects a duplicate key, so loading never overwrites a mask this
process computed itself.