MySQL 9.1.0
Source Code Documentation
anonymous_namespace{mysql_session.cc}::SSLSessionsCache Class Reference

Public Types

using EndpointId = std::string
 
using CachedType = std::string
 

Public Member Functions

bool was_session_reused (MYSQL *con)
 
void store_ssl_session (MYSQL *con, const EndpointId &endpoint_id)
 
void try_reuse_session (MYSQL *con, const EndpointId &endpoint_id)
 

Static Public Member Functions

static SSLSessionsCacheinstance ()
 

Private Member Functions

 SSLSessionsCache ()=default
 
 SSLSessionsCache (SSLSessionsCache &)=delete
 
SSLSessionsCacheoperator= (SSLSessionsCache &)=delete
 

Private Attributes

std::map< EndpointId, std::queue< CachedType > > cache_
 
std::mutex mtx_
 

Static Private Attributes

static constexpr size_t kMaxEntriesPerEndpoint {2}
 

Member Typedef Documentation

◆ CachedType

using anonymous_namespace{mysql_session.cc}::SSLSessionsCache::CachedType = std::string

◆ EndpointId

using anonymous_namespace{mysql_session.cc}::SSLSessionsCache::EndpointId = std::string

Constructor & Destructor Documentation

◆ SSLSessionsCache() [1/2]

anonymous_namespace{mysql_session.cc}::SSLSessionsCache::SSLSessionsCache ( )
privatedefault

◆ SSLSessionsCache() [2/2]

anonymous_namespace{mysql_session.cc}::SSLSessionsCache::SSLSessionsCache ( SSLSessionsCache )
privatedelete

Member Function Documentation

◆ instance()

static SSLSessionsCache & anonymous_namespace{mysql_session.cc}::SSLSessionsCache::instance ( )
inlinestatic

◆ operator=()

SSLSessionsCache * anonymous_namespace{mysql_session.cc}::SSLSessionsCache::operator= ( SSLSessionsCache )
privatedelete

◆ store_ssl_session()

void anonymous_namespace{mysql_session.cc}::SSLSessionsCache::store_ssl_session ( MYSQL con,
const EndpointId endpoint_id 
)
inline

◆ try_reuse_session()

void anonymous_namespace{mysql_session.cc}::SSLSessionsCache::try_reuse_session ( MYSQL con,
const EndpointId endpoint_id 
)
inline

◆ was_session_reused()

bool anonymous_namespace{mysql_session.cc}::SSLSessionsCache::was_session_reused ( MYSQL con)
inline

Member Data Documentation

◆ cache_

std::map<EndpointId, std::queue<CachedType> > anonymous_namespace{mysql_session.cc}::SSLSessionsCache::cache_
private

◆ kMaxEntriesPerEndpoint

constexpr size_t anonymous_namespace{mysql_session.cc}::SSLSessionsCache::kMaxEntriesPerEndpoint {2}
staticconstexprprivate

◆ mtx_

std::mutex anonymous_namespace{mysql_session.cc}::SSLSessionsCache::mtx_
private

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