proxygen
|
#include <SSLSessionCacheManager.h>
Public Member Functions | |
LocalSSLSessionCache (uint32_t maxCacheSize, uint32_t cacheCullSize) | |
~LocalSSLSessionCache () | |
Public Attributes | |
SSLSessionCacheMap | sessionCache |
std::mutex | lock |
uint32_t | removedSessions_ {0} |
Private Member Functions | |
void | pruneSessionCallback (const std::string &sessionId, SSL_SESSION *session) |
Holds an SSLSessionCacheMap and associated lock
Definition at line 38 of file SSLSessionCacheManager.h.
wangle::LocalSSLSessionCache::LocalSSLSessionCache | ( | uint32_t | maxCacheSize, |
uint32_t | cacheCullSize | ||
) |
Definition at line 55 of file SSLSessionCacheManager.cpp.
References folly::netops::bind(), pruneSessionCallback(), sessionCache, and folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::setPruneHook().
Referenced by wangle::ShardedLocalSSLSessionCache::ShardedLocalSSLSessionCache().
|
inline |
Definition at line 42 of file SSLSessionCacheManager.h.
References folly::EvictingCacheMap< TKey, TValue, THash, TKeyEqual >::clear(), g(), lock, and sessionCache.
|
private |
Definition at line 64 of file SSLSessionCacheManager.cpp.
References wangle::SSLUtil::hexlify(), and removedSessions_.
Referenced by LocalSSLSessionCache().
std::mutex wangle::LocalSSLSessionCache::lock |
Definition at line 49 of file SSLSessionCacheManager.h.
Referenced by wangle::ShardedLocalSSLSessionCache::lookupSession(), wangle::ShardedLocalSSLSessionCache::removeSession(), wangle::ShardedLocalSSLSessionCache::storeSession(), and ~LocalSSLSessionCache().
uint32_t wangle::LocalSSLSessionCache::removedSessions_ {0} |
Definition at line 50 of file SSLSessionCacheManager.h.
Referenced by pruneSessionCallback(), and wangle::ShardedLocalSSLSessionCache::storeSession().
SSLSessionCacheMap wangle::LocalSSLSessionCache::sessionCache |
Definition at line 48 of file SSLSessionCacheManager.h.
Referenced by LocalSSLSessionCache(), wangle::ShardedLocalSSLSessionCache::lookupSession(), wangle::ShardedLocalSSLSessionCache::storeSession(), and ~LocalSSLSessionCache().