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

Function toGenericHandle

cachelib/interface/components/RAMCacheComponent.cpp:163–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161// Adopt an existing refcount from the impl handle without inc/dec
162template <typename HandleT, typename ImplHandleT>
163HandleT toGenericHandle(RAMCacheComponent& cache, ImplHandleT implHandle) {
164 return adoptHandle<HandleT>(cache, getRAMCacheItem(implHandle.release()));
165}
166
167} // namespace
168

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected