proxygen
|
#include <PskCache.h>
Public Member Functions | |
~BasicPskCache () override=default | |
folly::Optional< CachedPsk > | getPsk (const std::string &identity) override |
void | putPsk (const std::string &identity, CachedPsk psk) override |
void | removePsk (const std::string &identity) override |
Public Member Functions inherited from fizz::client::PskCache | |
virtual | ~PskCache ()=default |
Private Attributes | |
std::unordered_map< std::string, CachedPsk > | cache_ |
Basic PSK cache that stores PSKs in a hash map. There is no bound on the size of this cache.
Definition at line 63 of file PskCache.h.
|
overridedefault |
|
inlineoverridevirtual |
Retrieve a PSK for the specified identity.
Implements fizz::client::PskCache.
Definition at line 67 of file PskCache.h.
References folly::none.
|
inlineoverridevirtual |
Add a new PSK for identity to the cache.
Implements fizz::client::PskCache.
Definition at line 76 of file PskCache.h.
References folly::gen::move.
|
inlineoverridevirtual |
Remove any PSKs associated with identity from the cache.
Implements fizz::client::PskCache.
Definition at line 80 of file PskCache.h.
|
private |
Definition at line 85 of file PskCache.h.