Function wasmer_wasix::runtime::module_cache::in_memory
source · pub fn in_memory() -> impl ModuleCache + Send + Sync
Expand description
Get a ModuleCache
which should be good enough for most in-memory use
cases.
§Platform-specific Notes
This will use the ThreadLocalCache
when running in the browser. Each
thread lives in a separate worker, so sharing compiled modules in the
browser requires using a custom ModuleCache
built on top of
postMessage()
and SharedArrayBuffer
.