#include <userver/storages/redis/request.hpp>
Valkey or Redis future for a non-scan and non-eval responses.
Member functions of classes storages::redis::Client and storages::redis::Transaction that do send request to the Redis return this type or storages::redis::ScanRequest.
Definition at line 37 of file request.hpp.
Public Types | |
| using | Result = ResultType |
| using | Reply = ReplyType |
Public Member Functions | |
| Request (std::unique_ptr< RequestDataBase< ReplyType > > &&impl) | |
| void | Wait () |
| void | IgnoreResult () const noexcept |
| Ignore the query result and do not wait for the Redis server to finish executing it. | |
| ReplyType | Get (const std::string &request_description={}) |
| engine::AwaitableToken | GetAwaitableToken () noexcept |
| Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends. | |
| using storages::redis::Request< ResultType, ReplyType >::Reply = ReplyType |
Definition at line 40 of file request.hpp.
| using storages::redis::Request< ResultType, ReplyType >::Result = ResultType |
Definition at line 39 of file request.hpp.
|
inlineexplicit |
Definition at line 42 of file request.hpp.
|
inline |
Wait for the request to finish on Redis server and get the result
| server | or request related exceptions |
Definition at line 57 of file request.hpp.
|
inlinenoexcept |
Satisfies engine::Awaitable, for use with engine::WaitAnyContext and friends.
Definition at line 60 of file request.hpp.
|
inlinenoexcept |
Ignore the query result and do not wait for the Redis server to finish executing it.
Definition at line 53 of file request.hpp.
|
inline |
Wait for the request to finish on Redis server, server or request errors (if any) are logged but not thrown.
| Exceptions | on misuse (for example, calling Wait() on a single result from a transaction before waiting for the transaction itself). |
Definition at line 50 of file request.hpp.
|
friend |
Definition at line 65 of file request.hpp.
|
friend |
Definition at line 68 of file request.hpp.
|
friend |
Definition at line 74 of file request.hpp.
|
friend |
Definition at line 71 of file request.hpp.