userver: storages::redis::Reply Class Reference
Loading...
Searching...
No Matches
storages::redis::Reply Class Referencefinal

#include <userver/storages/redis/reply.hpp>

Detailed Description

Redis command reply with metadata (server, status, timing).

Definition at line 190 of file reply.hpp.

Public Member Functions

 Reply (std::string command, ReplyData &&reply_data, ReplyStatus reply_status=ReplyStatus::kOk)
 operator bool () const
std::string_view GetStatusString () const
bool IsOk () const
bool IsLoggableError () const
bool IsUnusableInstanceError () const
bool IsReadonlyError () const
bool IsUnknownCommandError () const
const logging::LogExtraGetLogExtra () const
void FillSpanTags (tracing::Span &span) const
void ExpectIsOk (const std::string &request_description={}) const
const std::string & GetRequestDescription (const std::string &request_description) const

Public Attributes

std::string server
ServerId server_id
const std::string cmd
ReplyData data
const ReplyStatus status
double time = 0.0
logging::LogExtra log_extra

Member Function Documentation

◆ GetStatusString()

std::string_view storages::redis::Reply::GetStatusString ( ) const
inline

Definition at line 207 of file reply.hpp.

◆ operator bool()

storages::redis::Reply::operator bool ( ) const
inline

Definition at line 205 of file reply.hpp.

Member Data Documentation

◆ cmd

const std::string storages::redis::Reply::cmd

Definition at line 196 of file reply.hpp.

◆ data

ReplyData storages::redis::Reply::data

Definition at line 197 of file reply.hpp.

◆ log_extra

logging::LogExtra storages::redis::Reply::log_extra

Definition at line 200 of file reply.hpp.

◆ server

std::string storages::redis::Reply::server

Definition at line 194 of file reply.hpp.

◆ server_id

ServerId storages::redis::Reply::server_id

Definition at line 195 of file reply.hpp.

◆ status

const ReplyStatus storages::redis::Reply::status

Definition at line 198 of file reply.hpp.

◆ time

double storages::redis::Reply::time = 0.0

Definition at line 199 of file reply.hpp.


The documentation for this class was generated from the following file: