MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / clear

Method clear

lib/aot/cache.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void Cache::clear(Cache::StorageScope Scope, std::string_view Key) {
55 auto Root = getRoot(Scope);
56 if (!Key.empty()) {
57 Root /= std::filesystem::u8path(Key);
58 }
59 std::error_code ErrCode;
60 std::filesystem::remove_all(Root, ErrCode);
61}
62
63} // namespace AOT
64} // namespace WasmEdge

Callers 15

finiMethod · 0.45
fdReaddirMethod · 0.45
waitMethod · 0.45
resetMethod · 0.45
seekMethod · 0.45
writeMethod · 0.45
waitMethod · 0.45
resetMethod · 0.45
vfs_io.cppFile · 0.45
fdReaddirMethod · 0.45
waitMethod · 0.45
resetMethod · 0.45

Calls 2

getRootFunction · 0.85
emptyMethod · 0.45

Tested by 4

~TestContextMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
processCommandsMethod · 0.36