133 Redis(
const ComponentConfig& config,
const ComponentContext& component_context);
139 static constexpr std::string_view
kName =
"redis";
143 [[
deprecated(
"use GetClient()")]] std::shared_ptr<storages::
redis::impl::Sentinel> Client(
const std::string& name
148 static yaml_config::Schema GetStaticConfigSchema();
151 void OnConfigUpdate(
const dynamic_config::Snapshot& cfg);
152 void OnSecdistUpdate(
const storages::
secdist::SecdistConfig& cfg);
155 const ComponentConfig& config,
156 const ComponentContext& component_context,
160 void WriteStatistics(
utils::statistics::Writer& writer);
161 void WriteStatisticsPubsub(
utils::statistics::Writer& writer);
163 std::shared_ptr<storages::
redis::impl::ThreadPools> thread_pools_;
164 std::unordered_map<std::string, std::shared_ptr<storages::
redis::impl::Sentinel>> sentinels_;
165 std::unordered_map<std::string, std::shared_ptr<storages::
redis::
Client>> clients_;
166 std::unordered_map<std::string, std::shared_ptr<storages::
redis::SubscribeClientImpl>> subscribe_clients_;
168 dynamic_config::Source config_;
169 concurrent::AsyncEventSubscriberScope config_subscription_;
170 concurrent::AsyncEventSubscriberScope secdist_subscription_;
172 utils::statistics::Entry statistics_holder_;
173 utils::statistics::Entry subscribe_statistics_holder_;