MySQL 9.7.0
Source Code Documentation
host_cache::Entry Class Reference

#include <host_cache_entry.h>

Public Types

using steady_clock = std::chrono::steady_clock
 
using time_point = steady_clock::time_point
 

Public Member Functions

 Entry ()
 
 Entry (const Entry &other)
 
Entryoperator= (const Entry &other)
 

Public Attributes

std::string hostname_
 
std::vector< net::ip::addressaddresses_
 
std::chrono::seconds ttl_
 
time_point creation_time_ {steady_clock::now()}
 
std::atomic< uint64_t > cache_hits_ {0}
 
std::atomic< uint64_t > resolve_waiters_peak_ {0}
 

Member Typedef Documentation

◆ steady_clock

using host_cache::Entry::steady_clock = std::chrono::steady_clock

◆ time_point

using host_cache::Entry::time_point = steady_clock::time_point

Constructor & Destructor Documentation

◆ Entry() [1/2]

host_cache::Entry::Entry ( )
inline

◆ Entry() [2/2]

host_cache::Entry::Entry ( const Entry other)
inline

Member Function Documentation

◆ operator=()

Entry & host_cache::Entry::operator= ( const Entry other)
inline

Member Data Documentation

◆ addresses_

std::vector<net::ip::address> host_cache::Entry::addresses_

◆ cache_hits_

std::atomic<uint64_t> host_cache::Entry::cache_hits_ {0}

◆ creation_time_

time_point host_cache::Entry::creation_time_ {steady_clock::now()}

◆ hostname_

std::string host_cache::Entry::hostname_

◆ resolve_waiters_peak_

std::atomic<uint64_t> host_cache::Entry::resolve_waiters_peak_ {0}

◆ ttl_

std::chrono::seconds host_cache::Entry::ttl_

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