6#include <userver/storages/redis/fwd.hpp>
10namespace storages::
redis {
12class ExpireReply
final {
14 enum class ExpireReplyValue { kKeyDoesNotExist, kTimeoutWasSet };
16 static constexpr ExpireReplyValue kKeyDoesNotExist = ExpireReplyValue::kKeyDoesNotExist;
17 static constexpr ExpireReplyValue kTimeoutWasSet = ExpireReplyValue::kTimeoutWasSet;
19 explicit ExpireReply(int64_t value);
20 ExpireReply(ExpireReplyValue value);
22 static ExpireReply Parse(ReplyData&& reply_data,
const std::string& request_description = {});
24 operator ExpireReplyValue()
const;
27 ExpireReplyValue value_;
32#ifdef USERVER_FEATURE_LEGACY_REDIS_NAMESPACE
34using storages::redis::ExpireReply;