Skip to main content

BlockstoreReadCache

Trait BlockstoreReadCache 

Source
pub trait BlockstoreReadCache {
    // Required methods
    fn get(&self, k: &Cid) -> Option<Vec<u8>>;
    fn put(&self, k: Cid, block: Vec<u8>);
}

Required Methods§

Source

fn get(&self, k: &Cid) -> Option<Vec<u8>>

Source

fn put(&self, k: Cid, block: Vec<u8>)

Implementations on Foreign Types§

Source§

impl<T: BlockstoreReadCache> BlockstoreReadCache for Arc<T>

Source§

fn get(&self, k: &Cid) -> Option<Vec<u8>>

Source§

fn put(&self, k: Cid, block: Vec<u8>)

Implementors§