userver: storages::redis::ServerId Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
storages::redis::ServerId Class Reference

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

Detailed Description

Opaque Id of Redis server instance / any server instance.

Definition at line 28 of file command_control.hpp.

Public Member Functions

constexpr ServerId ()=default
 Default: any server.
 
bool IsAny () const
 
auto operator<=> (const ServerId &) const =default
 
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 ()
 

Member Function Documentation

◆ Generate()

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

Definition at line 44 of file command_control.hpp.

◆ GetId()

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

Definition at line 52 of file command_control.hpp.

◆ Invalid()

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

Definition at line 50 of file command_control.hpp.

◆ IsAny()

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

Definition at line 33 of file command_control.hpp.


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