| 940 | } |
| 941 | |
| 942 | void 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 | |
| 950 | std::string AsyncDataCache::toString(bool details) const { |
| 951 | auto stats = refreshStats(); |
no test coverage detected