mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Update lib/cache/src/filesystem.rs
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
This commit is contained in:
2
lib/cache/src/filesystem.rs
vendored
2
lib/cache/src/filesystem.rs
vendored
@@ -22,7 +22,7 @@ use wasmer::{DeserializeError, Module, SerializeError, Store};
|
|||||||
/// let mut fs_cache = FileSystemCache::new("some/directory/goes/here")?;
|
/// let mut fs_cache = FileSystemCache::new("some/directory/goes/here")?;
|
||||||
///
|
///
|
||||||
/// // Compute a key for a given WebAssembly binary
|
/// // Compute a key for a given WebAssembly binary
|
||||||
/// let hash = Hash::generate(key);
|
/// let hash = Hash::generate(bytes);
|
||||||
///
|
///
|
||||||
/// // Store a module into the cache given a key
|
/// // Store a module into the cache given a key
|
||||||
/// fs_cache.store(key, module.clone())?;
|
/// fs_cache.store(key, module.clone())?;
|
||||||
|
|||||||
Reference in New Issue
Block a user