MCPcopy Create free account
hub / github.com/facebook/CacheLib / ~ObjectCache

Method ~ObjectCache

cachelib/object_cache/ObjectCache.h:1134–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132
1133template <typename AllocatorT>
1134ObjectCache<AllocatorT>::~ObjectCache() {
1135 stopAllWorkers();
1136
1137 if (this->l1Cache_) {
1138 for (auto itr = this->l1Cache_->begin(); itr != this->l1Cache_->end();
1139 ++itr) {
1140 this->l1Cache_->remove(itr.asHandle());
1141 }
1142 }
1143}
1144
1145template <typename AllocatorT>
1146bool ObjectCache<AllocatorT>::remove(folly::StringPiece key) {

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected