Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching confusion #5

Open
emarj opened this issue Feb 24, 2019 · 0 comments
Open

Caching confusion #5

emarj opened this issue Feb 24, 2019 · 0 comments

Comments

@emarj
Copy link
Contributor

emarj commented Feb 24, 2019

Hi Jaime,

I have some confusion about the use of the cache.
Seems to me you are caching in two different ways. The first is by using auth as key and b64 as content:

if b64, ok := ca.cache.Get(string(ca.getAuth())); ok {

ca.cache.Add(string(ca.getAuth()), b64)

The second is using b64 as key and true as content:
ca.cache.Add(b64, true)

if ca.cache.Contains(b64) {

Why is that?

Best, Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant