MySQL 9.7.0
Source Code Documentation
HostCache Class Reference

#include <host_cache.h>

Inheritance diagram for HostCache:
[legend]

Classes

class  HostCacheImpl
 

Public Member Functions

 HostCache (std::shared_ptr< HostCacheConfig > config)
 
 ~HostCache () override
 
ResolveHostResult resolve_host (const std::string &hostname, CachePolicy cache_policy=CachePolicy::UseIfPresent) override
 
std::shared_ptr< HostCacheStatisticsComponentget_statistics () const
 
- Public Member Functions inherited from mysql_harness::resolver::ResolverInterface
virtual ~ResolverInterface ()=default
 

Private Attributes

std::shared_ptr< HostCacheImplimpl_
 

Additional Inherited Members

- Public Types inherited from mysql_harness::resolver::ResolverInterface
using ResolveHostResult = ::mysql_harness::resolver::ResolveHostResult
 
using CachePolicy = ::mysql_harness::resolver::CachePolicy
 

Constructor & Destructor Documentation

◆ HostCache()

HostCache::HostCache ( std::shared_ptr< HostCacheConfig config)

◆ ~HostCache()

HostCache::~HostCache ( )
overridedefault

Member Function Documentation

◆ get_statistics()

std::shared_ptr< HostCacheStatisticsComponent > HostCache::get_statistics ( ) const

◆ resolve_host()

ResolveHostResult HostCache::resolve_host ( const std::string &  hostname,
CachePolicy  cache_policy = CachePolicy::UseIfPresent 
)
overridevirtual

Member Data Documentation

◆ impl_

std::shared_ptr<HostCacheImpl> HostCache::impl_
private

The documentation for this class was generated from the following files: