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

Method item

cachelib/interface/components/RAMCacheComponent.cpp:64–67  ·  view source on GitHub ↗

* Get the containing LruCacheItem. * @return the containing cache item */

Source from the content-addressed store, hash-verified

62 * @return the containing cache item
63 */
64 LruCacheItem* item() const noexcept {
65 auto* base = reinterpret_cast<std::byte*>(const_cast<RAMCacheItem*>(this));
66 return reinterpret_cast<LruCacheItem*>(base - offset_);
67 }
68
69 // ------------------------------ Interface ------------------------------ //
70

Callers 2

getImplItemFromHandleFunction · 0.80
releaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected