cacache

Function metadata_sync

Source
pub fn metadata_sync<P, K>(cache: P, key: K) -> Result<Option<Metadata>>
where P: AsRef<Path>, K: AsRef<str>,
Expand description

Gets metadata for a certain key.

Note that the existence of a metadata entry is not a guarantee that the underlying data exists, since they are stored and managed independently. To verify that the underlying associated data exists, use exists_sync().