[][src]Trait sp_blockchain::ProvideCache

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

Provides access to the optional cache.

Required methods

pub 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...