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