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

Method getCreationTimeSec

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

Source from the content-addressed store, hash-verified

507 // 0 if object is nullptr
508 template <typename T>
509 uint32_t getCreationTimeSec(std::shared_ptr<T>& object) {
510 if (object == nullptr) {
511 return 0;
512 }
513 return getReadHandleRefInternal<T>(object)->getCreationTime();
514 }
515
516 // Update the expiry timestamp of an object
517 //

Callers 1

testGetCreationTimeMethod · 0.80

Calls 1

getCreationTimeMethod · 0.45

Tested by 1

testGetCreationTimeMethod · 0.64