#include #include namespace DB { ExternalLoadableLifetime::ExternalLoadableLifetime(const Poco::Util::AbstractConfiguration & config, const std::string & config_prefix) { const auto & lifetime_min_key = config_prefix + ".min"; const auto has_min = config.has(lifetime_min_key); min_sec = has_min ? config.getUInt64(lifetime_min_key) : config.getUInt64(config_prefix); max_sec = has_min ? config.getUInt64(config_prefix + ".max") : min_sec; } }