async fn read_from_db(&self, key: &ImageKey) -> Result<ImageEntry, CacheError> {
        let bytes = self
            .cache
            .read(key.as_bkey())
            .await
            .map_err(CacheError::Forceps)?;
        let e: ImageEntry = bytes.try_into().map_err(CacheError::Bincode)?;
        Ok(e)
    }
/// Reads an entry from the database based on the key provided
Reads an entry from the database based on the key provided
Reads an entry from the database based on the key provided
async fn read_from_db(&self, key: &ImageKey) -> Result<ImageEntry, CacheError> {
        let bytes = self
            .cache
            .read(key.as_bkey())
            .await
            .map_err(CacheError::Forceps)?;
        let e: ImageEntry = bytes.try_into().map_err(CacheError::Bincode)?;
        Ok(e)
    }
async fn read_from_db ( & self , key : & ImageKey ) -> Result < ImageEntry , CacheError > { let bytes = self . cache . read ( key . as_bkey ( ) ) . await . map_err ( CacheError :: Forceps ) ? ; let e : ImageEntry = bytes . try_into ( ) . map_err ( CacheError :: Bincode ) ? ; Ok ( e ) }
Reads an entry from the database based on the key provided
Reads an entry from the database based on the key provided
&self
key
&ImageKey