pub trait CacheKvStore {
    // Required methods
    fn get(&self, key: &[u8]) -> Option<Cow<'_, [u8]>>;
    fn insert(&mut self, key: &[u8], val: Vec<u8>);
}
Expand description

Backing storage for an incremental compilation cache, when enabled.

Required Methods§

source

fn get(&self, key: &[u8]) -> Option<Cow<'_, [u8]>>

Given a cache key hash, retrieves the associated opaque serialized data.

source

fn insert(&mut self, key: &[u8], val: Vec<u8>)

Given a new cache key and a serialized blob obtained from serialize_compiled, stores it in the cache store.

Implementors§