MCPcopy Create free account
hub / github.com/anelson/tracers / cache_generated_file

Function cache_generated_file

tracers-codegen/src/cache.rs:114–135  ·  view source on GitHub ↗

Lower-level caching function. Given some arbitrary file name (and optional path components) relative to the cache path, if the file exists, returns the fully qualified path to the file in the cache, if not, it passes that fully qualified path to the provided closure, and if that closure succeeds and the file was created, then this function returns the fully qualified path. If the closure returns

(
    cache_path: &Path,
    results_path: &Path,
    f: F,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

cache_file_computationFunction · 0.85
cache_object_computationFunction · 0.85
generate_provider_funcsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected