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

Method clear

bolt/common/caching/AsyncDataCache.cpp:942–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942void AsyncDataCache::clear() {
943 for (auto& shard : shards_) {
944 memory::Allocation unused;
945 shard->evict(std::numeric_limits<uint64_t>::max(), true, 0, unused);
946 BOLT_CHECK(unused.empty());
947 }
948}
949
950std::string AsyncDataCache::toString(bool details) const {
951 auto stats = refreshStats();

Callers 6

initializeMethod · 0.45
findOrCreateMethod · 0.45
removeEntryLockedMethod · 0.45
evictMethod · 0.45
freeAllocationsMethod · 0.45
shutdownMethod · 0.45

Calls 3

maxFunction · 0.50
evictMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected