userver: storages::redis::ServerId Class Reference
Loading...
Searching...
No Matches
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()

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

Definition at line 37 of file command_control.hpp.

◆ GetId()

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

Definition at line 45 of file command_control.hpp.

◆ Invalid()

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

Definition at line 43 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: