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

Detailed Description

Definition at line 23 of file base.hpp.

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, std::size_t db_index=0)
 

Public Attributes

std::string host = "localhost"
 
int port = 26379
 
Password password
 
bool read_only = false
 
ConnectionSecurity connection_security = ConnectionSecurity::kNone
 
std::size_t database_index = 0
 

Member Typedef Documentation

◆ HostVector

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

Definition at line 29 of file base.hpp.

Constructor & Destructor Documentation

◆ ConnectionInfo()

storages::redis::ConnectionInfo::ConnectionInfo ( std::string host,
int port,
Password password,
bool read_only = false,
ConnectionSecurity security = ConnectionSecurity::kNone,
std::size_t db_index = 0 )
inline

Definition at line 33 of file base.hpp.

Member Data Documentation

◆ connection_security

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

Definition at line 28 of file base.hpp.

◆ database_index

std::size_t storages::redis::ConnectionInfo::database_index = 0

Definition at line 30 of file base.hpp.

◆ host

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

Definition at line 24 of file base.hpp.

◆ password

Password storages::redis::ConnectionInfo::password

Definition at line 26 of file base.hpp.

◆ port

int storages::redis::ConnectionInfo::port = 26379

Definition at line 25 of file base.hpp.

◆ read_only

bool storages::redis::ConnectionInfo::read_only = false

Definition at line 27 of file base.hpp.


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