Public Member Functions | Private Attributes | Friends | List of all members
tsi::SslSessionLRUCache::Node Class Reference

Node for single cached session. More...

Public Member Functions

SslSessionPtr CopySession () const
 Returns a copy of the node's cache session. More...
 
const std::string & key () const
 
 Node (const Node &)=delete
 
 Node (const std::string &key, SslSessionPtr session)
 
Nodeoperator= (const Node &)=delete
 
void SetSession (SslSessionPtr session)
 Set the session (which is moved) for the node. More...
 

Private Attributes

std::string key_
 
Nodenext_ = nullptr
 
Nodeprev_ = nullptr
 
std::unique_ptr< SslCachedSessionsession_
 

Friends

class SslSessionLRUCache
 

Detailed Description

Node for single cached session.

Definition at line 33 of file ssl_session_cache.cc.

Constructor & Destructor Documentation

◆ Node() [1/2]

tsi::SslSessionLRUCache::Node::Node ( const std::string &  key,
SslSessionPtr  session 
)
inline

Definition at line 35 of file ssl_session_cache.cc.

◆ Node() [2/2]

tsi::SslSessionLRUCache::Node::Node ( const Node )
delete

Member Function Documentation

◆ CopySession()

SslSessionPtr tsi::SslSessionLRUCache::Node::CopySession ( ) const
inline

Returns a copy of the node's cache session.

Definition at line 46 of file ssl_session_cache.cc.

◆ key()

const std::string& tsi::SslSessionLRUCache::Node::key ( ) const
inline

Definition at line 43 of file ssl_session_cache.cc.

◆ operator=()

Node& tsi::SslSessionLRUCache::Node::operator= ( const Node )
delete

◆ SetSession()

void tsi::SslSessionLRUCache::Node::SetSession ( SslSessionPtr  session)
inline

Set the session (which is moved) for the node.

Definition at line 49 of file ssl_session_cache.cc.

Friends And Related Function Documentation

◆ SslSessionLRUCache

friend class SslSessionLRUCache
friend

Definition at line 54 of file ssl_session_cache.cc.

Member Data Documentation

◆ key_

std::string tsi::SslSessionLRUCache::Node::key_
private

Definition at line 56 of file ssl_session_cache.cc.

◆ next_

Node* tsi::SslSessionLRUCache::Node::next_ = nullptr
private

Definition at line 59 of file ssl_session_cache.cc.

◆ prev_

Node* tsi::SslSessionLRUCache::Node::prev_ = nullptr
private

Definition at line 60 of file ssl_session_cache.cc.

◆ session_

std::unique_ptr<SslCachedSession> tsi::SslSessionLRUCache::Node::session_
private

Definition at line 57 of file ssl_session_cache.cc.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:53