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

Could you add a method to get all the keys ? Or tell me how to implement. #68

Open
WuHuaJi0 opened this issue May 31, 2020 · 0 comments

Comments

@WuHuaJi0
Copy link

WuHuaJi0 commented May 31, 2020

Hi, I'm trying to build a Memcached desktop, and I need to fetch all the keys stored in Memcached.

Because Memcached's cachedump command can only dump the COLD item, so I need to use the lru_crawler metadump command to fetch all keys. See this link

I trying to add such method by myself.
First, I add a keys method in client.js

Client.prototype.keys = function(cb) {
    return this.run('lru_crawler metadump all', [], cb);
};

Second, I try to add lru_crawler metadump all method for Connection in connection.js

Connection.prototype['lru_crawler metadump all'] = function() {
 // How to implement ? 
};

Now, how to deal with the response data in lru_crawler metadump all is complicated for me, so can you add such method or tell me how to implement ?
Thanks.


I'm a develop from China, so please forgive me English :)

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