MCPcopy Create free account
hub / github.com/apache/trafficserver / getSharedData

Method getSharedData

plugins/experimental/wasm/lib/src/context.cc:194–197  ·  view source on GitHub ↗

Shared Data

Source from the content-addressed store, hash-verified

192
193// Shared Data
194WasmResult ContextBase::getSharedData(std::string_view key,
195 std::pair<std::string, uint32_t> *data) {
196 return getGlobalSharedData().get(wasm_->vm_id(), key, data);
197}
198
199WasmResult ContextBase::setSharedData(std::string_view key, std::string_view value, uint32_t cas) {
200 return getGlobalSharedData().set(wasm_->vm_id(), key, value, cas);

Callers 1

get_shared_dataFunction · 0.45

Calls 2

vm_idMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected