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

Detailed Description

Definition at line 240 of file reply.hpp.

+ Collaboration diagram for redis::Reply:

Public Member Functions

 Reply (std::string cmd, redisReply *redis_reply, ReplyStatus status)
 
 Reply (std::string cmd, redisReply *redis_reply, ReplyStatus status, std::string status_string)
 
 Reply (std::string cmd, ReplyData &&data)
 
 operator bool () 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
 
void ExpectType (ReplyData::Type type, const std::string &request_description={}) const
 
void ExpectString (const std::string &request_description={}) const
 
void ExpectArray (const std::string &request_description={}) const
 
void ExpectInt (const std::string &request_description={}) const
 
void ExpectNil (const std::string &request_description={}) const
 
void ExpectStatus (const std::string &request_description={}) const
 
void ExpectStatusEqualTo (const std::string &expected_status_str, const std::string &request_description={}) const
 
void ExpectError (const std::string &request_description={}) const
 
const std::string & GetRequestDescription (const std::string &request_description) const
 

Public Attributes

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

Member Function Documentation

◆ operator bool()

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

Definition at line 256 of file reply.hpp.

Member Data Documentation

◆ cmd

std::string redis::Reply::cmd

Definition at line 249 of file reply.hpp.

◆ data

ReplyData redis::Reply::data

Definition at line 250 of file reply.hpp.

◆ log_extra

logging::LogExtra redis::Reply::log_extra

Definition at line 254 of file reply.hpp.

◆ server

std::string redis::Reply::server

Definition at line 247 of file reply.hpp.

◆ server_id

ServerId redis::Reply::server_id

Definition at line 248 of file reply.hpp.

◆ status

ReplyStatus redis::Reply::status

Definition at line 251 of file reply.hpp.

◆ status_string

std::string redis::Reply::status_string

Definition at line 252 of file reply.hpp.

◆ time

double redis::Reply::time = 0.0

Definition at line 253 of file reply.hpp.


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