userver: storages::redis::DynamicSettings Struct Reference
Loading...
Searching...
No Matches
storages::redis::DynamicSettings Struct Referencefinal

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

Detailed Description

Dynamic configuration settings for Redis clients.

Definition at line 27 of file dynamic_redis.hpp.

Classes

struct  HostPort
 

Public Attributes

std::vector< std::string > shards
 
std::vector< HostPortsentinels
 
storages::redis::Password password {std::string()}
 Password for nodes.
 
storages::redis::Password sentinel_password {std::string()}
 Password for sentinels. Available since Redis 5.0.1. For early versions should be always empty.
 
storages::redis::ConnectionSecurity secure_connection {storages::redis::ConnectionSecurity::kNone}
 
std::size_t database_index {0}
 
ShardingStrategy sharding_strategy
 
bool allow_reads_from_master = false
 

Member Data Documentation

◆ allow_reads_from_master

bool storages::redis::DynamicSettings::allow_reads_from_master = false

Definition at line 44 of file dynamic_redis.hpp.

◆ database_index

std::size_t storages::redis::DynamicSettings::database_index {0}

Definition at line 42 of file dynamic_redis.hpp.

◆ password

storages::redis::Password storages::redis::DynamicSettings::password {std::string()}

Password for nodes.

Definition at line 38 of file dynamic_redis.hpp.

◆ secure_connection

storages::redis::ConnectionSecurity storages::redis::DynamicSettings::secure_connection {storages::redis::ConnectionSecurity::kNone}

Definition at line 41 of file dynamic_redis.hpp.

◆ sentinel_password

storages::redis::Password storages::redis::DynamicSettings::sentinel_password {std::string()}

Password for sentinels. Available since Redis 5.0.1. For early versions should be always empty.

Definition at line 40 of file dynamic_redis.hpp.

◆ sentinels

std::vector<HostPort> storages::redis::DynamicSettings::sentinels

Definition at line 36 of file dynamic_redis.hpp.

◆ sharding_strategy

ShardingStrategy storages::redis::DynamicSettings::sharding_strategy

Definition at line 43 of file dynamic_redis.hpp.

◆ shards

std::vector<std::string> storages::redis::DynamicSettings::shards

Definition at line 35 of file dynamic_redis.hpp.


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