27 enum class TtlReplyValue { kKeyDoesNotExist = -2, kKeyHasNoExpiration = -1 };
29 static constexpr TtlReplyValue kKeyDoesNotExist = TtlReplyValue::kKeyDoesNotExist;
30 static constexpr TtlReplyValue kKeyHasNoExpiration = TtlReplyValue::kKeyHasNoExpiration;
32 explicit TtlReply(int64_t value);
33 TtlReply(TtlReplyValue value);
35 static TtlReply Parse(ReplyData&& reply_data,
const std::string& request_description = {});
37 bool KeyExists()
const;
38 bool KeyHasExpiration()
const;
39 [[deprecated(
"Use GetExpire() instead")]] size_t GetExpireSeconds()
const {
return GetExpire().count(); }