19 auto cacheMap =
cache_.wlock();
20 auto result = cacheMap->find(identity);
21 if (result != cacheMap->end()) {
22 return result->second;
31 auto cacheMap =
cache_.wlock();
36 auto cacheMap =
cache_.wlock();
37 cacheMap->erase(identity);
void putPsk(const std::string &identity, CachedPsk psk) override
constexpr detail::Map< Move > move
folly::Synchronized< EvictingPskMap > cache_
SynchronizedLruPskCache(uint64_t mapMax)
folly::Optional< CachedPsk > getPsk(const std::string &identity) override
void removePsk(const std::string &identity) override