Go to the documentation of this file.
98 if (node !=
nullptr) {
121 if (node ==
nullptr) {
128 if (node->
prev_ ==
nullptr) {
133 if (node->
next_ ==
nullptr) {
146 node->
next_ =
nullptr;
147 node->
prev_ =
nullptr;
152 node->
prev_ =
nullptr;
160 Node* prev =
nullptr;
162 while (current !=
nullptr) {
169 current = current->
next_;
void PushFront(Node *node)
Node * use_order_list_head_
SslSessionPtr Get(const char *key)
SslSessionLRUCache(size_t capacity)
std::map< std::string, Node * > entry_by_key_
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
std::unique_ptr< SSL_SESSION, SslSessionDeleter > SslSessionPtr
const std::string & key() const
~SslSessionLRUCache() override
Node for single cached session.
Node & operator=(const Node &)=delete
void Put(const char *key, SslSessionPtr session)
std::unique_ptr< SslCachedSession > session_
void SetSession(SslSessionPtr session)
Set the session (which is moved) for the node.
AllocList * next[kMaxLevel]
size_t use_order_list_size_
Node * FindLocked(const std::string &key)
Node(const std::string &key, SslSessionPtr session)
Node * use_order_list_tail_
SslSessionPtr CopySession() const
Returns a copy of the node's cache session.
size_t Size()
Returns current number of sessions in the cache.
static std::unique_ptr< SslCachedSession > Create(SslSessionPtr session)
Create single cached instance of session.
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:21