pub fn init_cache_process_scoped(policy: CachePolicy) -> Result<Arc<DriveCache>>Expand description
Initializes only the cache middleware using a discovered process-scoped cache location.
This uses a cache group derived from this crate’s package name and creates a process/thread-scoped cache storage file automatically, so callers do not need to manually provide a cache path.
The underlying cache root is discovered via CacheRoot::from_discovery().
§Errors
Returns an error if cache root discovery, process-scoped directory creation, or store initialization fails.