Similar to `cache_file_computation`, except the computation is not on the contents of a file but rather on some arbitrary object with a name and a hash. If the computation has previously been performed on the same name and hash, the previous result is returned. Otherwise the computation is performed and saved in the cache for future invocations.
(
cache_path: &Path,
object_name: &str,
hash: HashCode,
key: &str,
f: F,
)
source not stored for this graph (policy: none)