Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Add LRU cache.#59

Merged
qiwzhang merged 3 commits intogoogle:masterfrom
mk46:lru
Dec 16, 2020
Merged

Add LRU cache.#59
qiwzhang merged 3 commits intogoogle:masterfrom
mk46:lru

Conversation

@mk46
Copy link
Copy Markdown
Contributor

@mk46 mk46 commented Dec 16, 2020

Signed-off-by: Manish Kumar manishjpiet@gmail.com

Added LRU cache.
Ref : envoyproxy/envoy/14341

Signed-off-by: Manish Kumar <manishjpiet@gmail.com>
@mk46
Copy link
Copy Markdown
Contributor Author

mk46 commented Dec 16, 2020

CC @qiwzhang

BUILD Outdated
"jwt_verify_lib/check_audience.h",
"jwt_verify_lib/jwks.h",
"jwt_verify_lib/jwt.h",
"jwt_verify_lib/simple_lru_cache.h",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please make this a separate cc_library,
  • put the two header files into a separate include folder, simple_lru_cache/ folder
  • move all test.cc file into test/ folder

Folder org:

jwt_verify_lib/
simple_lru_cache/
src/
test/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Manish Kumar <manishjpiet@gmail.com>
#include "absl/container/flat_hash_map.h" // for hash<>

namespace google {
namespace jwt_verify {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change namespace from jwt_verify to simple_lru_cache thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Manish Kumar <manishjpiet@gmail.com>
@qiwzhang qiwzhang merged commit c96fc37 into google:master Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants