21class PttlReply
final {
23 enum class PttlReplyValue : std::int8_t {
24 kKeyDoesNotExist = -2,
25 kKeyHasNoExpiration = -1,
28 static constexpr PttlReplyValue kKeyDoesNotExist = PttlReplyValue::kKeyDoesNotExist;
29 static constexpr PttlReplyValue kKeyHasNoExpiration = PttlReplyValue::kKeyHasNoExpiration;
31 explicit PttlReply(int64_t value);
32 PttlReply(PttlReplyValue value);
35 static PttlReply
Parse(ReplyData&& reply_data,
const std::string& request_description = {});
37 bool KeyExists()
const;
38 bool KeyHasExpiration()
const;