3#include <userver/storages/redis/parse_reply.hpp>
4#include <userver/storages/redis/reply.hpp>
5#include <userver/storages/redis/request.hpp>
11template <
typename ScriptResult,
typename ReplyType = ScriptResult>
12class [[nodiscard]] RequestEval final {
14 explicit RequestEval(RequestEvalCommon&& request)
15 : request_(std::move(request)) {}
17 void Wait() { request_.Wait(); }
19 void IgnoreResult()
const { request_.IgnoreResult(); }
21 ReplyType Get(
const std::string& request_description = {}) {
22 return ParseReply<ScriptResult, ReplyType>(request_.GetRaw(),
28 engine::impl::ContextAccessor* TryGetContextAccessor()
noexcept {
29 return request_.TryGetContextAccessor();
34 RequestEvalCommon request_;