Trait sp_blockchain::ProvideCache[][src]

pub trait ProvideCache<Block: BlockT> {
    fn cache(&self) -> Option<Arc<dyn Cache<Block>>>;
}

Provides access to the optional cache.

Required methods

fn cache(&self) -> Option<Arc<dyn Cache<Block>>>[src]

Returns data cache reference, if it is enabled on this backend.

Loading content...

Implementors

Loading content...