GRPC Core
18.0.0
|
#include <ssl_session_cache.h>
Data Structures | |
class | Node |
Node for single cached session. More... | |
Public Member Functions | |
SslSessionLRUCache (size_t capacity) | |
~SslSessionLRUCache () override | |
SslSessionLRUCache (const SslSessionLRUCache &)=delete | |
SslSessionLRUCache & | operator= (const SslSessionLRUCache &)=delete |
size_t | Size () |
Returns current number of sessions in the cache. More... | |
void | Put (const char *key, SslSessionPtr session) |
Add session in the cache using key. More... | |
SslSessionPtr | Get (const char *key) |
Returns the session from the cache associated with key or null if not found. More... | |
![]() | |
~RefCounted ()=default | |
RefCountedPtr< SslSessionLRUCache > | Ref () GRPC_MUST_USE_RESULT |
RefCountedPtr< SslSessionLRUCache > | Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
void | Unref () |
void | Unref (const DebugLocation &location, const char *reason) |
RefCountedPtr< SslSessionLRUCache > | RefIfNonZero () GRPC_MUST_USE_RESULT |
RefCountedPtr< SslSessionLRUCache > | RefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
RefCounted (const RefCounted &)=delete | |
RefCounted & | operator= (const RefCounted &)=delete |
![]() | |
virtual | ~PolymorphicRefCount ()=default |
Static Public Member Functions | |
static grpc_core::RefCountedPtr< SslSessionLRUCache > | Create (size_t capacity) |
Create new LRU cache with the given capacity. More... | |
Additional Inherited Members | |
![]() | |
RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1) | |
|
explicit |
|
override |
|
delete |
|
inlinestatic |
Create new LRU cache with the given capacity.
SslSessionPtr tsi::SslSessionLRUCache::Get | ( | const char * | key | ) |
Returns the session from the cache associated with key or null if not found.
|
delete |
void tsi::SslSessionLRUCache::Put | ( | const char * | key, |
SslSessionPtr | session | ||
) |
Add session in the cache using key.
This operation may discard older sessions.
size_t tsi::SslSessionLRUCache::Size | ( | ) |
Returns current number of sessions in the cache.