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

Function TSCacheRemove

src/api/InkAPI.cc:6210–6222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6208}
6209
6210TSAction
6211TSCacheRemove(TSCont contp, TSCacheKey key)
6212{
6213 sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
6214 sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS);
6215
6216 FORCE_PLUGIN_SCOPED_MUTEX(contp);
6217
6218 CacheInfo *info = reinterpret_cast<CacheInfo *>(key);
6219 INKContInternal *i = reinterpret_cast<INKContInternal *>(contp);
6220
6221 return reinterpret_cast<TSAction>(cacheProcessor.remove(i, &info->cache_key, info->frag_type, info->hostname, info->len));
6222}
6223
6224TSAction
6225TSCacheScan(TSCont contp, TSCacheKey key, int KB_per_second)

Callers 3

handle_ioFunction · 0.85
cache_handlerFunction · 0.85
removeCacheKeyFunction · 0.85

Calls 3

removeMethod · 0.45

Tested by 1

cache_handlerFunction · 0.68