20 enum class TtlReplyValue { kKeyDoesNotExist = -2, kKeyHasNoExpiration = -1 };
22 static constexpr TtlReplyValue kKeyDoesNotExist = TtlReplyValue::kKeyDoesNotExist;
23 static constexpr TtlReplyValue kKeyHasNoExpiration = TtlReplyValue::kKeyHasNoExpiration;
25 explicit TtlReply(int64_t value);
26 TtlReply(TtlReplyValue value);
28 static TtlReply Parse(ReplyData&& reply_data,
const std::string& request_description = {});
30 bool KeyExists()
const;
31 bool KeyHasExpiration()
const;
32 [[deprecated(
"Use GetExpire() instead")]] size_t GetExpireSeconds()
const {
return GetExpire().count(); }
33 std::chrono::seconds GetExpire()
const;