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

Method getLastAccessTimeSec

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

Source from the content-addressed store, hash-verified

494 // 0 if object is nullptr
495 template <typename T>
496 uint32_t getLastAccessTimeSec(std::shared_ptr<T>& object) {
497 if (object == nullptr) {
498 return 0;
499 }
500 return getReadHandleRefInternal<T>(object)->getLastAccessTime();
501 }
502
503 // Get the creation timestamp of the object
504 // @param object object shared pointer returned from ObjectCache APIs

Callers 1

testGetLastAccessTimeMethod · 0.80

Calls 1

getLastAccessTimeMethod · 0.45

Tested by 1

testGetLastAccessTimeMethod · 0.64