| 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 |