proxygen
SynchronizedLruPskCache.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
11 #include <fizz/client/PskCache.h>
12 #include <folly/Synchronized.h>
14 
15 namespace fizz {
16 namespace client {
17 
24  public:
26  ~SynchronizedLruPskCache() override = default;
27  explicit SynchronizedLruPskCache(uint64_t mapMax);
28 
29  folly::Optional<CachedPsk> getPsk(const std::string& identity) override;
30 
31  void putPsk(const std::string& identity, CachedPsk psk) override;
32 
33  void removePsk(const std::string& identity) override;
34 
35  private:
37 };
38 
39 } // namespace client
40 } // namespace fizz
void putPsk(const std::string &identity, CachedPsk psk) override
folly::Synchronized< EvictingPskMap > cache_
folly::Optional< CachedPsk > getPsk(const std::string &identity) override
void removePsk(const std::string &identity) override
Definition: Actions.h:16
const char * string
Definition: Conv.cpp:212
~SynchronizedLruPskCache() override=default