Function read_cache
Source pub fn read_cache<T: for<'de> Deserialize<'de>>(
key: &str,
) -> Result<Option<CacheEntry<T>>>
Expand description
Read a cache entry from disk.
§Arguments
key - Cache key (relative path within cache directory)
§Returns
The deserialized cache entry, or None if the file doesn’t exist.
§Errors
Returns an error if the file exists but cannot be read or parsed.