| 537 | // @return boolean indicating whether TTL was successfully extended |
| 538 | template <typename T> |
| 539 | bool extendTtl(std::shared_ptr<T>& object, std::chrono::seconds ttl) { |
| 540 | if (object == nullptr) { |
| 541 | return false; |
| 542 | } |
| 543 | return getWriteHandleRefInternal<T>(object)->extendTTL(ttl); |
| 544 | } |
| 545 | |
| 546 | // Mutate object and update the object size |
| 547 | // When size-awareness is enabled, users must call this API to mutate the |