pub async fn hash_exists<P: AsRef<Path>>(cache: P, sri: &Integrity) -> bool {
    read::has_content_async(cache.as_ref(), &sri)
        .await
        .is_some()
}
/// Returns true if the given hash exists in the cache.
Returns true if the given hash exists in the cache.
Returns true if the given hash exists in the cache .
pub async fn hash_exists<P: AsRef<Path>>(cache: P, sri: &Integrity) -> bool {
    read::has_content_async(cache.as_ref(), &sri)
        .await
        .is_some()
}
pub async fn hash_exists < P : AsRef < Path > > ( cache : P , sri : & Integrity ) -> bool { read :: has_content_async ( cache . as_ref ( ) , & sri ) . await . is_some ( ) }
Returns true if the given hash exists in the cache.
Returns true if the given hash exists in the cache .
cache
P
sri
&Integrity
cache
P
sri
&Integrity