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

Function TSCacheWrite

src/api/InkAPI.cc:6195–6208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6193}
6194
6195TSAction
6196TSCacheWrite(TSCont contp, TSCacheKey key)
6197{
6198 sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
6199 sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS);
6200
6201 FORCE_PLUGIN_SCOPED_MUTEX(contp);
6202
6203 CacheInfo *info = reinterpret_cast<CacheInfo *>(key);
6204 Continuation *i = reinterpret_cast<INKContInternal *>(contp);
6205
6206 return reinterpret_cast<TSAction>(
6207 cacheProcessor.open_write(i, &info->cache_key, info->frag_type, 0, false, info->pin_in_cache, info->hostname, info->len));
6208}
6209
6210TSAction
6211TSCacheRemove(TSCont contp, TSCacheKey key)

Callers 4

writeFunction · 0.85

Calls 3

open_writeMethod · 0.45

Tested by 1