Trait CacheStore
pub trait CacheStore:
Send
+ Sync
+ Debug {
// Required methods
fn get(&self, key: &[u8]) -> Option<Cow<'_, [u8]>>;
fn insert(&self, key: &[u8], value: Vec<u8>) -> bool;
}
Available on crate features
incremental-cache
and cranelift
only.Expand description
Implementation of an incremental compilation’s key/value cache store.
In theory, this could just be Cranelift’s CacheKvStore
trait, but it is not as we want to
make sure that wasmtime isn’t too tied to Cranelift internals (and as a matter of fact, we
can’t depend on the Cranelift trait here).