MCPcopy Create free account
hub / github.com/bytedance/bolt / exists

Method exists

bolt/common/caching/AsyncDataCache.cpp:238–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238bool CacheShard::exists(RawFileCacheKey key) const {
239 std::lock_guard<std::mutex> l(mutex_);
240 auto it = entryMap_.find(key);
241 if (it != entryMap_.end()) {
242 it->second->touch();
243 return true;
244 }
245 return false;
246}
247
248CachePin CacheShard::initEntry(
249 RawFileCacheKey key,

Callers 15

generateMethod · 0.45
discover_postsFunction · 0.45
loadMethod · 0.45
mainMethod · 0.45
createTraceDirectoryFunction · 0.45
getTaskIdsFunction · 0.45
TEST_FFunction · 0.45
spillStateTestMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
touchMethod · 0.45

Tested by 11

mainMethod · 0.36
TEST_FFunction · 0.36
spillStateTestMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
testSortedSpillMethod · 0.36
removeDirecrtoryIfExistFunction · 0.36
TEST_FFunction · 0.36
loadBatchMethod · 0.36