userver: redis::ConnectionInfo Struct 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
redis::ConnectionInfo Struct Reference
+ Collaboration diagram for redis::ConnectionInfo:

Public Types

using HostVector = std::vector< std::string >
 

Public Member Functions

 ConnectionInfo (std::string host, int port, Password password, bool read_only=false, ConnectionSecurity security=ConnectionSecurity::kNone, HostVector resolved_host={})
 

Public Attributes

std::string host = "localhost"
 
int port = 26379
 
Password password
 
bool read_only = false
 
ConnectionSecurity connection_security = ConnectionSecurity::kNone
 
HostVector resolved_host {}
 

Detailed Description

Definition at line 27 of file base.hpp.

Member Typedef Documentation

◆ HostVector

using redis::ConnectionInfo::HostVector = std::vector<std::string>

Definition at line 33 of file base.hpp.

Constructor & Destructor Documentation

◆ ConnectionInfo()

redis::ConnectionInfo::ConnectionInfo ( std::string  host,
int  port,
Password  password,
bool  read_only = false,
ConnectionSecurity  security = ConnectionSecurity::kNone,
HostVector  resolved_host = {} 
)
inline

Definition at line 37 of file base.hpp.

Member Data Documentation

◆ connection_security

ConnectionSecurity redis::ConnectionInfo::connection_security = ConnectionSecurity::kNone

Definition at line 32 of file base.hpp.

◆ host

std::string redis::ConnectionInfo::host = "localhost"

Definition at line 28 of file base.hpp.

◆ password

Password redis::ConnectionInfo::password

Definition at line 30 of file base.hpp.

◆ port

int redis::ConnectionInfo::port = 26379

Definition at line 29 of file base.hpp.

◆ read_only

bool redis::ConnectionInfo::read_only = false

Definition at line 31 of file base.hpp.

◆ resolved_host

HostVector redis::ConnectionInfo::resolved_host {}

Definition at line 34 of file base.hpp.


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