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

Function TSCacheRead

src/api/InkAPI.cc:6181–6193  ·  view source on GitHub ↗

Cache VConnections */

Source from the content-addressed store, hash-verified

6179
6180/* Cache VConnections */
6181TSAction
6182TSCacheRead(TSCont contp, TSCacheKey key)
6183{
6184 sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
6185 sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS);
6186
6187 FORCE_PLUGIN_SCOPED_MUTEX(contp);
6188
6189 CacheInfo *info = reinterpret_cast<CacheInfo *>(key);
6190 Continuation *i = reinterpret_cast<INKContInternal *>(contp);
6191
6192 return reinterpret_cast<TSAction>(cacheProcessor.open_read(i, &info->cache_key, info->frag_type, info->hostname, info->len));
6193}
6194
6195TSAction
6196TSCacheWrite(TSCont contp, TSCacheKey key)

Callers 5

state_write_to_cacheFunction · 0.85
cache_handlerFunction · 0.85
fetchFunction · 0.85

Calls 3

open_readMethod · 0.45

Tested by 1

cache_handlerFunction · 0.68