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

Function fetch

plugins/experimental/inliner/cache.h:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92 template <class T, class... A>
93 void
94 fetch(const std::string &k, A &&...a)
95 {
96 const Key key(k);
97 const TSCont continuation = TSContCreate(Read<T>::handle, TSMutexCreate());
98 assert(continuation != nullptr);
99 TSContDataSet(continuation, new Read<T>(std::forward<A>(a)...));
100 TSCacheRead(continuation, key.key());
101 }
102
103 struct Write {
104 const std::string content_;

Callers

nothing calls this directly

Calls 5

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSCacheReadFunction · 0.85
keyMethod · 0.45

Tested by

no test coverage detected