MCPcopy Create free account
hub / github.com/facebook/CacheLib / begin

Method begin

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

Get an iterator to iterate over all items in object-cache. The returned iterator provides getMemory() for safe aligned access to the ObjectCacheItem stored in each entry.

Source from the content-addressed store, hash-verified

402 // iterator provides getMemory() for safe aligned access to the
403 // ObjectCacheItem stored in each entry.
404 AccessIterator begin() { return AccessIterator{this->l1Cache_->begin()}; }
405
406 AccessIterator end() { return AccessIterator{this->l1Cache_->end()}; }
407

Callers 7

workMethod · 0.45
~ObjectCacheMethod · 0.45
deserializeMethod · 0.45
checkTotalObjectSizeMethod · 0.45

Calls

no outgoing calls

Tested by 4

checkTotalObjectSizeMethod · 0.36