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

Method getExpiryTimeSec

cachelib/object_cache/ObjectCache.h:469–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 // 0 if object is nullptr
468 template <typename T>
469 uint32_t getExpiryTimeSec(const std::shared_ptr<T>& object) const {
470 if (object == nullptr) {
471 return 0;
472 }
473 return getReadHandleRefInternal<T>(object)->getExpiryTime();
474 }
475
476 // Get the configured TTL of the object
477 // @param object object shared pointer returned from ObjectCache APIs

Callers 2

testGetTtlMethod · 0.80
testUpdateTtlMethod · 0.80

Calls 1

getExpiryTimeMethod · 0.45

Tested by 2

testGetTtlMethod · 0.64
testUpdateTtlMethod · 0.64