Go to the documentation of this file.
19 #ifndef GRPC_CORE_TSI_SSL_SESSION_CACHE_SSL_SESSION_CACHE_H
20 #define GRPC_CORE_TSI_SSL_SESSION_CACHE_SSL_SESSION_CACHE_H
51 return grpc_core::MakeRefCounted<SslSessionLRUCache>(
capacity);
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_
std::unique_ptr< SSL_SESSION, SslSessionDeleter > SslSessionPtr
SslSessionLRUCache & operator=(const SslSessionLRUCache &)=delete
~SslSessionLRUCache() override
Node for single cached session.
void Put(const char *key, SslSessionPtr session)
size_t use_order_list_size_
Node * FindLocked(const std::string &key)
Node * use_order_list_tail_
size_t Size()
Returns current number of sessions in the cache.
static grpc_core::RefCountedPtr< SslSessionLRUCache > Create(size_t capacity)
Create new LRU cache with the given capacity.
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:21