[][src]Trait sc_client::light::blockchain::ProvideCache

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

Provides access to the optional cache.

Required methods

fn cache(&self) -> Option<Arc<dyn Cache<Block> + 'static>>

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

Loading content...

Implementors

impl<B, E, Block, RA> ProvideCache<Block> for Client<B, E, Block, RA> where
    B: Backend<Block>,
    Block: BlockT
[src]

impl<Block: BlockT> ProvideCache<Block> for sc_client::in_mem::Blockchain<Block>[src]

impl<S: Storage<Block>, Block: BlockT> ProvideCache<Block> for sc_client::light::blockchain::Blockchain<S>[src]

Loading content...