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