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

Method key

cachelib/navy/block_cache/BlockCache.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60folly::StringPiece BlockCache::ReadResult::key() const {
61 auto entryEnd = buffer_.data() + buffer_.size();
62 return {reinterpret_cast<const char*>(
63 entryEnd - sizeof(BlockCache::EntryDesc) - keySize_),
64 keySize_};
65}
66
67BufferView BlockCache::ReadResult::value() const {
68 return buffer_.view().slice(0, valueSize_);

Callers 11

estimateWriteSizeMethod · 0.45
lookupInternalMethod · 0.45
getRandomAllocMethod · 0.45
onRegionReclaimMethod · 0.45
reinsertOrRemoveItemMethod · 0.45
allocateImplMethod · 0.45
allocateForInsertMethod · 0.45
writeEntryDescAndKeyMethod · 0.45
writeEntryMethod · 0.45
persistMethod · 0.45
recoverMethod · 0.45

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected