29 #include <openssl/ssl.h> 45 virtual std::chrono::time_point<std::chrono::system_clock>
now()
const {
54 std::shared_ptr<folly::Executor>
executor,
56 std::size_t cacheCapacity,
57 std::chrono::seconds syncInterval);
61 std::size_t cacheCapacity,
62 std::chrono::seconds syncInterval);
74 const std::string& identity)
const noexcept
override;
86 void setTimeUtil(std::unique_ptr<TimeUtil> timeUtil) noexcept {
91 size_t size()
const override;
97 std::shared_ptr<PersistentCache<K, SSLSessionCacheData>>
106 std::shared_ptr<folly::Executor>
executor,
108 std::size_t cacheCapacity,
109 std::chrono::seconds syncInterval)
118 std::size_t cacheCapacity,
119 std::chrono::seconds syncInterval)
bool supportsPersistence() const noexceptoverride
SSLSessionPersistentCache(const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
constexpr detail::Map< Move > move
std::chrono::steady_clock::time_point now()
virtual std::chrono::time_point< std::chrono::system_clock > now() const
void setTimeUtil(std::unique_ptr< TimeUtil > timeUtil) noexcept
requires E e noexcept(noexcept(s.error(std::move(e))))
PUSHMI_INLINE_VAR constexpr __adl::get_executor_fn executor
size_t size() const override
void setSSLSession(const std::string &identity, SSLSessionPtr session) noexceptoverride
std::shared_ptr< PersistentCache< K, SSLSessionCacheData > > persistentCache_
std::unique_ptr< SSL_SESSION, SessionDestructor > SSLSessionPtr
bool removeSSLSession(const std::string &identity) noexceptoverride
std::string getKey(const std::string &identity) const override
SSLSessionPtr getSSLSession(const std::string &identity) const noexceptoverride
std::unique_ptr< TimeUtil > timeUtil_
virtual K getKey(const std::string &identity) const =0
SSLSessionPersistentCache(std::shared_ptr< folly::Executor > executor, const std::string &filename, std::size_t cacheCapacity, std::chrono::seconds syncInterval)
SSLSessionPersistentCacheBase(std::shared_ptr< PersistentCache< K, SSLSessionCacheData >> cache)