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

Method remove

plugins/slice/ObjectSizeCache.cc:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void
71ObjectSizeCache::remove(const std::string_view url)
72{
73 std::lock_guard lock{_mutex};
74 if (auto it = _index.find(url); it != _index.end()) {
75 cache_size_type i = it->second;
76 _visits[i] = false;
77 _urls[i].erase();
78 _index.erase(it);
79 }
80}
81
82/**
83 * @brief Make _hand point to the next entry that should be replaced, and clear that entry if it exists.

Callers 2

sizeCacheRemoveMethod · 0.45
test_cache.ccFile · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected