Skip to main content

get_from_cache_decoded

Function get_from_cache_decoded 

Source
pub(crate) async fn get_from_cache_decoded(
    cache: Option<&ManifestCache>,
    key: &str,
    compress_type: CompressionType,
) -> Option<Vec<u8>>
Expand description

Gets and decodes the object payload cached under key.

Older remote fills cached decoded content. If decoding fails, discard the entry and let the caller refill it from object storage. Remote decode and checksum errors are still returned by the caller.