|
GRPC Core
9.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 () | |
| 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... | |
Public Member Functions inherited from grpc_core::RefCounted< SslSessionLRUCache > | |
| ~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) |
| bool | RefIfNonZero () |
| bool | RefIfNonZero (const DebugLocation &location, const char *reason) |
| RefCounted (const RefCounted &)=delete | |
| RefCounted & | operator= (const RefCounted &)=delete |
Public Member Functions inherited from grpc_core::PolymorphicRefCount | |
| 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 | |
Protected Member Functions inherited from grpc_core::RefCounted< SslSessionLRUCache > | |
| RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1) | |
|
explicit |
| tsi::SslSessionLRUCache::~SslSessionLRUCache | ( | ) |
|
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.