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

Provides access to the optional cache.

Required methods

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

Implementations on Foreign Types

Implementors

impl<Block: BlockT> ProvideCache<Block> for Blockchain<Block>

impl<Block: BlockT> ProvideCache<Block> for BlockchainDb<Block>