This repository was archived by the owner on Feb 13, 2022. It is now read-only.
Multiple key get query #21
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Memcached supports multiple keys in a get query. I added a handler to support this feature and thought you would find it useful.
I changed the
exports.getmethod to accomodate arrays or strings with spaces. The handler for the multiple key get followed the same pattern as the regular get handler.The major difference, to me, is that I am specifically looking for the end tag position and not trying to figure it out according to the length given. This would not be fun to calculate for a multiple key get query. The
crlfvalue is present in all the responses. I used thecrlfas something to key on.Any questions or places that I can fill in, let me know!
Best,
Barret
Ps. Thank you for making this a simple to follow node module. I appreciate it.