pub async fn sgd_get(
        &mut self,
        hash: AnySgdHash,
        options: GetOptions,
    ) -> CascadeResult<Option<Element>> {
        match *hash.hash_type() {
            AnySgd::Entry => self.sgd_get_entry(hash.into(), options).await,
            AnySgd::Header => self.sgd_get_header(hash.into(), options).await,
        }
    }
/// Updates the cache with the latest network authority data
/// and returns what is in the cache.
/// This gives you the latest possible picture of the current sgd state.
/// Data from your zome call is also added to the cache.
Updates the cache with the latest network authority data
and returns what is in the cache.
This gives you the latest possible picture of the current sgd state.
Data from your zome call is also added to the cache.
Updates the cache with the latest network authority data and returns what is in the cache . This gives you the latest possible picture of the current sgd state . Data from your zome call is also added to the cache .
pub async fn sgd_get(
        &mut self,
        hash: AnySgdHash,
        options: GetOptions,
    ) -> CascadeResult<Option<Element>> {
        match *hash.hash_type() {
            AnySgd::Entry => self.sgd_get_entry(hash.into(), options).await,
            AnySgd::Header => self.sgd_get_header(hash.into(), options).await,
        }
    }
pub async fn sgd_get ( & mut self , hash : AnySgdHash , options : GetOptions , ) -> CascadeResult < Option < Element > > { match * hash . hash_type ( ) { AnySgd :: Entry => self . sgd_get_entry ( hash . into ( ) , options ) . await , AnySgd :: Header => self . sgd_get_header ( hash . into ( ) , options ) . await , } }
Updates the cache with the latest network authority data
and returns what is in the cache.
Updates the cache with the latest network authority data and returns what is in the cache .
&mut self
hash
AnySgdHash
options
GetOptions
&mut self
hash
AnySgdHash
options
GetOptions