proxygen
wangle::SSLSessionPersistentCache Class Reference

#include <SSLSessionPersistentCache.h>

Inheritance diagram for wangle::SSLSessionPersistentCache:
wangle::SSLSessionPersistentCacheBase< std::string > wangle::SSLSessionCallbacks

Public Member Functions

 SSLSessionPersistentCache (std::shared_ptr< folly::Executor > executor, const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
 
 SSLSessionPersistentCache (const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
 
- Public Member Functions inherited from wangle::SSLSessionPersistentCacheBase< std::string >
 SSLSessionPersistentCacheBase (std::shared_ptr< PersistentCache< std::string, SSLSessionCacheData >> cache)
 
 SSLSessionPersistentCacheBase (std::shared_ptr< folly::Executor > executor, const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
 
 SSLSessionPersistentCacheBase (const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
 
void setSSLSession (const std::string &identity, SSLSessionPtr session) noexceptoverride
 
SSLSessionPtr getSSLSession (const std::string &identity) const noexceptoverride
 
bool removeSSLSession (const std::string &identity) noexceptoverride
 
bool supportsPersistence () const noexceptoverride
 
void setTimeUtil (std::unique_ptr< TimeUtil > timeUtil) noexcept
 
size_t size () const override
 
- Public Member Functions inherited from wangle::SSLSessionCallbacks
virtual ~SSLSessionCallbacks ()
 

Protected Member Functions

std::string getKey (const std::string &identity) const override
 

Additional Inherited Members

- Static Public Member Functions inherited from wangle::SSLSessionCallbacks
static void attachCallbacksToContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
 
static void detachCallbacksFromContext (SSL_CTX *ctx, SSLSessionCallbacks *callbacks)
 
static SSLSessionCallbacksgetCacheFromContext (SSL_CTX *ctx)
 
- Protected Attributes inherited from wangle::SSLSessionPersistentCacheBase< std::string >
std::shared_ptr< PersistentCache< std::string, SSLSessionCacheData > > persistentCache_
 
std::unique_ptr< TimeUtil > timeUtil_
 

Detailed Description

Definition at line 102 of file SSLSessionPersistentCache.h.

Constructor & Destructor Documentation

wangle::SSLSessionPersistentCache::SSLSessionPersistentCache ( std::shared_ptr< folly::Executor executor,
const std::string filename,
std::size_t  cacheCapacity,
std::chrono::seconds  syncInterval 
)
inline

Definition at line 105 of file SSLSessionPersistentCache.h.

112  filename,
113  cacheCapacity,
114  syncInterval) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
PUSHMI_INLINE_VAR constexpr __adl::get_executor_fn executor
SSLSessionPersistentCacheBase(std::shared_ptr< PersistentCache< std::string, SSLSessionCacheData >> cache)
wangle::SSLSessionPersistentCache::SSLSessionPersistentCache ( const std::string filename,
std::size_t  cacheCapacity,
std::chrono::seconds  syncInterval 
)
inline

Definition at line 116 of file SSLSessionPersistentCache.h.

120  : SSLSessionPersistentCacheBase(filename, cacheCapacity, syncInterval) {}
SSLSessionPersistentCacheBase(std::shared_ptr< PersistentCache< std::string, SSLSessionCacheData >> cache)

Member Function Documentation

std::string wangle::SSLSessionPersistentCache::getKey ( const std::string identity) const
inlineoverrideprotectedvirtual

Implements wangle::SSLSessionPersistentCacheBase< std::string >.

Definition at line 123 of file SSLSessionPersistentCache.h.

123  {
124  return identity;
125  }

The documentation for this class was generated from the following file: