[−][src]Trait wasmer_runtime_core::cache::Cache
A generic cache for storing and loading compiled wasm modules.
The wasmer-runtime
supplies a naive FileSystemCache
api.
Associated Types
type LoadError: Debug
type StoreError: Debug
Required methods
fn load(&self, key: WasmHash) -> Result<Module, Self::LoadError>
loads a module using the default Backend
fn load_with_backend(
&self,
key: WasmHash,
backend: Backend
) -> Result<Module, Self::LoadError>
&self,
key: WasmHash,
backend: Backend
) -> Result<Module, Self::LoadError>
loads a cached module using a specific Backend
fn store(
&mut self,
key: WasmHash,
module: Module
) -> Result<(), Self::StoreError>
&mut self,
key: WasmHash,
module: Module
) -> Result<(), Self::StoreError>