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

add Values() method to get cache values #94

Merged
merged 3 commits into from Jun 6, 2023

Conversation

DoubleDi
Copy link
Contributor

Hi @jefferai !

All the current cache implementations export the Keys() method which returns all the keys in the cache.

In some cases, like cache testing, you need to know all the cache values. You can do this via Keys() + Get() operation, but this is not an atomic operation.

So I present Values() which returns all the cache values in a similar way to Keys(). Please consider adding this method to the caches.

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 22, 2021

CLA assistant check
All committers have signed the CLA.

@jefferai
Copy link
Member

jefferai commented Jun 6, 2023

Thanks for this!

@jefferai jefferai merged commit bd154e2 into hashicorp:master Jun 6, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

4 participants