26#ifndef ROUTER_SRC_HOST_CACHE_SRC_HOST_CACHE_H_
27#define ROUTER_SRC_HOST_CACHE_SRC_HOST_CACHE_H_
38 HostCache(std::shared_ptr<HostCacheConfig> config);
42 const std::string &hostname,
43 CachePolicy cache_policy = CachePolicy::UseIfPresent)
override;
45 std::shared_ptr<HostCacheStatisticsComponent>
get_statistics()
const;
49 std::shared_ptr<HostCacheImpl>
impl_;
Definition: host_cache.cc:49
Definition: host_cache.h:36
std::shared_ptr< HostCacheImpl > impl_
Definition: host_cache.h:48
std::shared_ptr< HostCacheStatisticsComponent > get_statistics() const
Definition: host_cache.cc:331
ResolveHostResult resolve_host(const std::string &hostname, CachePolicy cache_policy=CachePolicy::UseIfPresent) override
Definition: host_cache.cc:326
HostCache(std::shared_ptr< HostCacheConfig > config)
Definition: host_cache.cc:321
Definition: interface.h:37
Definition: expected.h:286
CachePolicy
Definition: common.h:40