16 enum class TtlReplyValue { kKeyDoesNotExist = -2, kKeyHasNoExpiration = -1 };
18 static constexpr TtlReplyValue kKeyDoesNotExist = TtlReplyValue::kKeyDoesNotExist;
19 static constexpr TtlReplyValue kKeyHasNoExpiration = TtlReplyValue::kKeyHasNoExpiration;
21 explicit TtlReply(int64_t value);
22 TtlReply(TtlReplyValue value);
24 static TtlReply Parse(ReplyData&& reply_data,
const std::string& request_description = {});
26 bool KeyExists()
const;
27 bool KeyHasExpiration()
const;
28 [[deprecated(
"Use GetExpire() instead")]] size_t GetExpireSeconds()
const {
return GetExpire().count(); }
29 std::chrono::seconds GetExpire()
const;