6#include <userver/storages/redis/impl/types.hpp>
12class ExpireReply
final {
14 enum class ExpireReplyValue { kKeyDoesNotExist, kTimeoutWasSet };
16 static constexpr ExpireReplyValue kKeyDoesNotExist =
17 ExpireReplyValue::kKeyDoesNotExist;
18 static constexpr ExpireReplyValue kTimeoutWasSet =
19 ExpireReplyValue::kTimeoutWasSet;
21 explicit ExpireReply(int64_t value);
22 ExpireReply(ExpireReplyValue value);
24 static ExpireReply Parse(ReplyData&& reply_data,
25 const std::string& request_description = {});
27 operator ExpireReplyValue()
const;
30 ExpireReplyValue value_;