userver: userver/storages/redis/impl/secdist_redis.hpp Source File
Loading...
Searching...
No Matches
secdist_redis.hpp
1#pragma once
2
3#include <chrono>
4#include <string>
5#include <vector>
6
7#include <userver/storages/redis/impl/base.hpp>
8
9USERVER_NAMESPACE_BEGIN
10
11namespace secdist {
12
13struct RedisSettings {
14 struct HostPort {
15 std::string host;
16 int port;
17
18 explicit HostPort(std::string host = {}, int port = 0)
19 : host(std::move(host)), port(port) {}
20 };
21
22 std::vector<std::string> shards;
23 std::vector<HostPort> sentinels;
24 redis::Password password{std::string()};
25 redis::ConnectionSecurity secure_connection{redis::ConnectionSecurity::kNone};
26};
27
28} // namespace secdist
29
30USERVER_NAMESPACE_END