userver: redis::ServerId Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts

Opaque Id of Redis server instance / any server instance. More...

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

Public Member Functions

 ServerId ()=default
 Default: any server.
 
bool IsAny () const
 
bool operator== (const ServerId &other) const
 
bool operator!= (const ServerId &other) const
 
bool operator< (const ServerId &other) const
 
int64_t GetId () const
 
void SetDescription (std::string description) const
 
void RemoveDescription () const
 
std::string GetDescription () const
 

Static Public Member Functions

static ServerId Generate ()
 
static ServerId Invalid ()
 

Detailed Description

Opaque Id of Redis server instance / any server instance.

Definition at line 27 of file command_control.hpp.

Member Function Documentation

◆ Generate()

static ServerId redis::ServerId::Generate ( )
inlinestatic

Definition at line 39 of file command_control.hpp.

◆ GetId()

int64_t redis::ServerId::GetId ( ) const
inline

Definition at line 47 of file command_control.hpp.

◆ Invalid()

static ServerId redis::ServerId::Invalid ( )
inlinestatic

Definition at line 45 of file command_control.hpp.

◆ IsAny()

bool redis::ServerId::IsAny ( ) const
inline

Definition at line 32 of file command_control.hpp.

◆ operator!=()

bool redis::ServerId::operator!= ( const ServerId other) const
inline

Definition at line 35 of file command_control.hpp.

◆ operator<()

bool redis::ServerId::operator< ( const ServerId other) const
inline

Definition at line 37 of file command_control.hpp.

◆ operator==()

bool redis::ServerId::operator== ( const ServerId other) const
inline

Definition at line 34 of file command_control.hpp.


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