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