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

Get all the stored keys by memcached method in nodejs #366

Open
NayOoLwin5 opened this issue Jul 14, 2022 · 3 comments
Open

Get all the stored keys by memcached method in nodejs #366

NayOoLwin5 opened this issue Jul 14, 2022 · 3 comments

Comments

@NayOoLwin5
Copy link

Hi all, first of all, thanks for this amazing library.

Is there any method that memcached provides to access all stored keys? I need them to access their respective values somewhere else in my code.

@anhnt2309
Copy link

https://github.com/3rd-Eden/memcached/blob/master/examples/simple_cachedump.js

You can reference this file to list all keys stored in memcached. I'd just test it and it work great

@NayOoLwin5
Copy link
Author

Thanks a lot @anhnt2309.. it does list out all stored keys but also I am getting the keys that I have deleted long back.
Is there any workaround to filter only the active keys (the ones not deleted yet)?

@nouritsu
Copy link

@NayOoLwin5 did you find a solution to only get the current keys?

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

3 participants